1MDB_LOAD(1)                 General Commands Manual                MDB_LOAD(1)
2
3
4

NAME

6       mdb_load - LMDB environment import tool
7

SYNOPSIS

9       mdb_load [-V] [-f file] [-n] [-s subdb] [-N] [-T]  envpath
10

DESCRIPTION

12       The  mdb_load  utility  reads from the standard input and loads it into
13       the LMDB environment envpath.
14
15       The input to mdb_load must be in the output  format  specified  by  the
16       mdb_dump(1) utility or as specified by the -T option below.
17

OPTIONS

19       -V     Write  the  library  version  number to the standard output, and
20              exit.
21
22       -a     Append all records in the order they appear in  the  input.  The
23              input  is assumed to already be in correctly sorted order and no
24              sorting or checking for  redundant  values  will  be  performed.
25              This  option  must  be  used to reload data that was produced by
26              running mdb_dump on a database that uses  custom  compare  func‐
27              tions.
28
29       -f file
30              Read from the specified file instead of from the standard input.
31
32       -n     Load an LMDB database which does not use subdirectories.
33
34       -s subdb
35              Load  a  specific subdatabase. If no database is specified, data
36              is loaded into the main database.
37
38       -N     Don't overwrite existing records when loading  into  an  already
39              existing database; just skip them.
40
41       -T     Load data from simple text files. The input must be paired lines
42              of text, where the first line of the pair is the key  item,  and
43              the second line of the pair is its corresponding data item.
44
45              A simple escape mechanism, where newline and backslash (\) char‐
46              acters are special, is applied to the text input. Newline  char‐
47              acters  are interpreted as record separators.  Backslash charac‐
48              ters in the text will be interpreted in one of two ways: If  the
49              backslash  character  precedes  another backslash character, the
50              pair will be interpreted as a literal backslash.  If  the  back‐
51              slash character precedes any other character, the two characters
52              following the backslash will be  interpreted  as  a  hexadecimal
53              specification  of a single character; for example, \0a is a new‐
54              line character in the ASCII character set.
55
56              For this reason, any backslash or newline characters that  natu‐
57              rally occur in the text input must be escaped to avoid misinter‐
58              pretation by mdb_load.
59
60

DIAGNOSTICS

62       Exit status is zero if no errors occur.  Errors result  in  a  non-zero
63       exit status and a diagnostic message being written to standard error.
64
65

SEE ALSO

67       mdb_dump(1)
68

AUTHOR

70       Howard Chu of Symas Corporation <http://www.symas.com>
71
72
73
74LMDB 0.9.17                       2015/09/30                       MDB_LOAD(1)
Impressum