nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

mdb_load.1 (2636B)


      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 
     28 The input to
     29 .B mdb_load
     30 must be in the output format specified by the
     31 .BR mdb_dump (1)
     32 utility or as specified by the
     33 .B -T
     34 option below.
     35 .SH OPTIONS
     36 .TP
     37 .BR \-V
     38 Write the library version number to the standard output, and exit.
     39 .TP
     40 .BR \-a
     41 Append all records in the order they appear in the input. The input is assumed to already be
     42 in correctly sorted order and no sorting or checking for redundant values will be performed.
     43 This option must be used to reload data that was produced by running
     44 .B mdb_dump
     45 on a database that uses custom compare functions.
     46 .TP
     47 .BR \-f \ file
     48 Read from the specified file instead of from the standard input.
     49 .TP
     50 .BR \-n
     51 Load an LMDB database which does not use subdirectories.
     52 .TP
     53 .BR \-s \ subdb
     54 Load a specific subdatabase. If no database is specified, data is loaded into the main database.
     55 .TP
     56 .BR \-N
     57 Don't overwrite existing records when loading into an already existing database; just skip them.
     58 .TP
     59 .BR \-T
     60 Load data from simple text files. The input must be paired lines of text, where the first
     61 line of the pair is the key item, and the second line of the pair is its corresponding
     62 data item.
     63 
     64 A simple escape mechanism, where newline and backslash (\\) characters are special, is
     65 applied to the text input. Newline characters are interpreted as record separators.
     66 Backslash characters in the text will be interpreted in one of two ways: If the backslash
     67 character precedes another backslash character, the pair will be interpreted as a literal
     68 backslash. If the backslash character precedes any other character, the two characters
     69 following the backslash will be interpreted as a hexadecimal specification of a single
     70 character; for example, \\0a is a newline character in the ASCII character set.
     71 
     72 For this reason, any backslash or newline characters that naturally occur in the text
     73 input must be escaped to avoid misinterpretation by
     74 .BR mdb_load . 
     75 
     76 .SH DIAGNOSTICS
     77 Exit status is zero if no errors occur.
     78 Errors result in a non-zero exit status and
     79 a diagnostic message being written to standard error.
     80 
     81 .SH "SEE ALSO"
     82 .BR mdb_dump (1)
     83 .SH AUTHOR
     84 Howard Chu of Symas Corporation <http://www.symas.com>