Electroneum
Write Flags
Collaboration diagram for Write Flags:

Modules

 Copy Flags
 

Macros

#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
 

Variables

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

Detailed Description

LMDB Command Line Tools

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

  • mdb_copy_1
  • mdb_dump_1
  • mdb_load_1
  • mdb_stat_1

Macro Definition Documentation

◆ MDB_APPEND

#define MDB_APPEND   0x20000

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

Definition at line 377 of file lmdb.h.

◆ MDB_APPENDDUP

#define MDB_APPENDDUP   0x40000

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

Definition at line 379 of file lmdb.h.

◆ MDB_CURRENT

#define MDB_CURRENT   0x40

For mdb_cursor_put: overwrite the current key/data pair

Definition at line 371 of file lmdb.h.

◆ MDB_MULTIPLE

#define MDB_MULTIPLE   0x80000

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

Definition at line 381 of file lmdb.h.

◆ MDB_NODUPDATA

#define MDB_NODUPDATA   0x20

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.

Definition at line 369 of file lmdb.h.

◆ MDB_NOOVERWRITE

#define MDB_NOOVERWRITE   0x10

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

Definition at line 364 of file lmdb.h.

◆ MDB_RESERVE

#define MDB_RESERVE   0x10000

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

Definition at line 375 of file lmdb.h.

Variable Documentation

◆ me_last_pgno

mdb_size_t MDB_envinfo::me_last_pgno

ID of the last used page

Definition at line 504 of file lmdb.h.

◆ me_last_txnid

mdb_size_t MDB_envinfo::me_last_txnid

ID of the last committed transaction

Definition at line 505 of file lmdb.h.

◆ me_mapaddr

void* MDB_envinfo::me_mapaddr

Address of map, if fixed

Definition at line 502 of file lmdb.h.

◆ me_mapsize

mdb_size_t MDB_envinfo::me_mapsize

Size of the data memory map

Definition at line 503 of file lmdb.h.

◆ me_maxreaders

unsigned int MDB_envinfo::me_maxreaders

max reader slots in the environment

Definition at line 506 of file lmdb.h.

◆ me_numreaders

unsigned int MDB_envinfo::me_numreaders

max reader slots used in the environment

Definition at line 507 of file lmdb.h.

◆ ms_branch_pages

mdb_size_t MDB_stat::ms_branch_pages

Number of internal (non-leaf) pages

Definition at line 494 of file lmdb.h.

◆ ms_depth

unsigned int MDB_stat::ms_depth

Depth (height) of the B-tree

Definition at line 493 of file lmdb.h.

◆ ms_entries

mdb_size_t MDB_stat::ms_entries

Number of data items

Definition at line 497 of file lmdb.h.

◆ ms_leaf_pages

mdb_size_t MDB_stat::ms_leaf_pages

Number of leaf pages

Definition at line 495 of file lmdb.h.

◆ ms_overflow_pages

mdb_size_t MDB_stat::ms_overflow_pages

Number of overflow pages

Definition at line 496 of file lmdb.h.

◆ ms_psize

unsigned int MDB_stat::ms_psize

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

Definition at line 491 of file lmdb.h.

◆ mv_data

void* MDB_val::mv_data

address of the data item

Definition at line 288 of file lmdb.h.

◆ mv_size

size_t MDB_val::mv_size

size of the data item

Definition at line 287 of file lmdb.h.