DOKK / manpages / debian 11 / lmdb-doc / mdb_put.3.en
mdb_put(3) Library Functions Manual mdb_put(3)

mdb_put


Copy Flags


#define MDB_NOOVERWRITE 0x10
#define MDB_NODUPDATA 0x20
#define MDB_CURRENT 0x40
#define MDB_RESERVE 0x10000
#define MDB_APPEND 0x20000
#define MDB_APPENDDUP 0x40000
#define MDB_MULTIPLE 0x80000


size_t MDB_val::mv_size
void * MDB_val::mv_data
unsigned int MDB_stat::ms_psize
unsigned int MDB_stat::ms_depth
size_t MDB_stat::ms_branch_pages
size_t MDB_stat::ms_leaf_pages
size_t MDB_stat::ms_overflow_pages
size_t MDB_stat::ms_entries
void * MDB_envinfo::me_mapaddr
size_t MDB_envinfo::me_mapsize
size_t MDB_envinfo::me_last_pgno
size_t MDB_envinfo::me_last_txnid
unsigned int MDB_envinfo::me_maxreaders
unsigned int MDB_envinfo::me_numreaders

LMDB Command Line Tools The following describes the command line tools that are available for LMDB.

  • mdb_copy - environment copy tool
  • mdb_dump - environment export tool
  • mdb_load - environment import tool
  • mdb_stat - environment status tool

For put: Don't write if the key already exists.

Only for MDB_DUPSORT
For put: don't write if the key and data pair already exist.
For mdb_cursor_del: remove all duplicate data items.

For mdb_cursor_put: overwrite the current key/data pair

For put: Just reserve space for data, don't copy it. Return a pointer to the reserved space.

Data is being appended, don't split full pages.

Duplicate data is being appended, don't split full pages.

Store multiple data items in one call. Only for MDB_DUPFIXED.

size of the data item

address of the data item

Size of a database page. This is currently the same for all databases.

Depth (height) of the B-tree

Number of internal (non-leaf) pages

Number of leaf pages

Number of overflow pages

Number of data items

Address of map, if fixed

Size of the data memory map

ID of the last used page

ID of the last committed transaction

max reader slots in the environment

max reader slots used in the environment

Generated automatically by Doxygen for LMDB from the source code.

Wed Mar 25 2020 LMDB