mdb_load.1 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. .TH MDB_LOAD 1 "2015/09/30" "LMDB 0.9.17"
  2. .\" Copyright 2014-2021 Howard Chu, Symas Corp. All Rights Reserved.
  3. .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
  4. .SH NAME
  5. mdb_load \- LMDB environment import tool
  6. .SH SYNOPSIS
  7. .B mdb_load
  8. [\c
  9. .BR \-V ]
  10. [\c
  11. .BI \-f \ file\fR]
  12. [\c
  13. .BR \-n ]
  14. [\c
  15. .BI \-s \ subdb\fR]
  16. [\c
  17. .BR \-N ]
  18. [\c
  19. .BR \-T ]
  20. .BR \ envpath
  21. .SH DESCRIPTION
  22. The
  23. .B mdb_load
  24. utility reads from the standard input and loads it into the
  25. LMDB environment
  26. .BR envpath .
  27. The input to
  28. .B mdb_load
  29. must be in the output format specified by the
  30. .BR mdb_dump (1)
  31. utility or as specified by the
  32. .B -T
  33. option below.
  34. .SH OPTIONS
  35. .TP
  36. .BR \-V
  37. Write the library version number to the standard output, and exit.
  38. .TP
  39. .BR \-a
  40. Append all records in the order they appear in the input. The input is assumed to already be
  41. in correctly sorted order and no sorting or checking for redundant values will be performed.
  42. This option must be used to reload data that was produced by running
  43. .B mdb_dump
  44. on a database that uses custom compare functions.
  45. .TP
  46. .BR \-f \ file
  47. Read from the specified file instead of from the standard input.
  48. .TP
  49. .BR \-n
  50. Load an LMDB database which does not use subdirectories.
  51. .TP
  52. .BR \-s \ subdb
  53. Load a specific subdatabase. If no database is specified, data is loaded into the main database.
  54. .TP
  55. .BR \-N
  56. Don't overwrite existing records when loading into an already existing database; just skip them.
  57. .TP
  58. .BR \-T
  59. Load data from simple text files. The input must be paired lines of text, where the first
  60. line of the pair is the key item, and the second line of the pair is its corresponding
  61. data item.
  62. A simple escape mechanism, where newline and backslash (\\) characters are special, is
  63. applied to the text input. Newline characters are interpreted as record separators.
  64. Backslash characters in the text will be interpreted in one of two ways: If the backslash
  65. character precedes another backslash character, the pair will be interpreted as a literal
  66. backslash. If the backslash character precedes any other character, the two characters
  67. following the backslash will be interpreted as a hexadecimal specification of a single
  68. character; for example, \\0a is a newline character in the ASCII character set.
  69. For this reason, any backslash or newline characters that naturally occur in the text
  70. input must be escaped to avoid misinterpretation by
  71. .BR mdb_load .
  72. .SH DIAGNOSTICS
  73. Exit status is zero if no errors occur.
  74. Errors result in a non-zero exit status and
  75. a diagnostic message being written to standard error.
  76. .SH "SEE ALSO"
  77. .BR mdb_dump (1)
  78. .SH AUTHOR
  79. Howard Chu of Symas Corporation <http://www.symas.com>