Structs§
- MDB_
cursor - MDB_env
- MDB_
envinfo - Information about the environment
- MDB_
stat - Statistics for a database in the environment
- MDB_txn
- MDB_val
- Generic structure used for passing keys and data in and out of the database.
Constants§
- MDB_
APPEND - MDB_
APPENDDUP - MDB_
BAD_ DBI - MDB_
BAD_ RSLOT - MDB_
BAD_ TXN - MDB_
BAD_ VALSIZE - MDB_
CORRUPTED - MDB_
CP_ COMPACT - MDB_
CREATE - MDB_
CURRENT - MDB_
CURSOR_ FULL - MDB_
DBS_ FULL - MDB_
DUPFIXED - MDB_
DUPSORT - MDB_
FIRST - < Position at first key/data item
- MDB_
FIRST_ DUP - < Position at first data item of current key. Only for #MDB_DUPSORT
- MDB_
FIXEDMAP - MDB_
FMT_ Z - MDB_
GET_ BOTH - < Position at key/data pair. Only for #MDB_DUPSORT
- MDB_
GET_ BOTH_ RANGE - < position at key, nearest data. Only for #MDB_DUPSORT
- MDB_
GET_ CURRENT - < Return key/data at current cursor position
- MDB_
GET_ MULTIPLE - < Return up to a page of duplicate data items from current cursor position. Move cursor to prepare for #MDB_NEXT_MULTIPLE. Only for #MDB_DUPFIXED
- MDB_
INCOMPATIBLE - MDB_
INTEGERDUP - MDB_
INTEGERKEY - MDB_
INVALID - MDB_
KEYEXIST - MDB_
LAST - < Position at last key/data item
- MDB_
LAST_ DUP - < Position at last data item of current key. Only for #MDB_DUPSORT
- MDB_
LAST_ ERRCODE - MDB_
MAPASYNC - MDB_
MAP_ FULL - MDB_
MAP_ RESIZED - MDB_
MULTIPLE - MDB_
NEXT - < Position at next data item
- MDB_
NEXT_ DUP - < Position at next data item of current key. Only for #MDB_DUPSORT
- MDB_
NEXT_ MULTIPLE - < Return up to a page of duplicate data items from next cursor position. Move cursor to prepare for #MDB_NEXT_MULTIPLE. Only for #MDB_DUPFIXED
- MDB_
NEXT_ NODUP - < Position at first data item of next key
- MDB_
NODUPDATA - MDB_
NOLOCK - MDB_
NOMEMINIT - MDB_
NOMETASYNC - MDB_
NOOVERWRITE - MDB_
NORDAHEAD - MDB_
NOSUBDIR - MDB_
NOSYNC - MDB_
NOTFOUND - MDB_
NOTLS - MDB_
PAGE_ FULL - MDB_
PAGE_ NOTFOUND - MDB_
PANIC - MDB_
PREV - < Position at previous data item
- MDB_
PREVSNAPSHOT - MDB_
PREV_ DUP - < Position at previous data item of current key. Only for #MDB_DUPSORT
- MDB_
PREV_ MULTIPLE - < Position at previous page and return up to a page of duplicate data items. Only for #MDB_DUPFIXED
- MDB_
PREV_ NODUP - < Position at last data item of previous key
- MDB_
PROBLEM - MDB_
RDONLY - MDB_
READERS_ FULL - MDB_
RESERVE - MDB_
REVERSEDUP - MDB_
REVERSEKEY - MDB_SET
- < Position at specified key
- MDB_
SET_ KEY - < Position at specified key, return key + data
- MDB_
SET_ RANGE - < Position at first key greater than or equal to specified key.
- MDB_
SIZE_ MAX - MDB_
SUCCESS - MDB_
TLS_ FULL - MDB_
TXN_ FULL - MDB_
VERSION_ DATE - MDB_
VERSION_ MAJOR - MDB_
VERSION_ MINOR - MDB_
VERSION_ MISMATCH - MDB_
VERSION_ PATCH - MDB_
WRITEMAP
Functions§
- mdb_cmp⚠
- Compare two data items according to a particular database.
- mdb_
cursor_ ⚠close - Close a cursor handle.
- mdb_
cursor_ ⚠count - Return count of duplicates for current key.
- mdb_
cursor_ ⚠dbi - Return the cursor’s database handle.
- mdb_
cursor_ ⚠del - Delete current key/data pair
- mdb_
cursor_ ⚠get - Retrieve by cursor.
- mdb_
cursor_ ⚠open - Create a cursor handle.
- mdb_
cursor_ ⚠put - Store by cursor.
- mdb_
cursor_ ⚠renew - Renew a cursor handle.
- mdb_
cursor_ ⚠txn - Return the cursor’s transaction handle.
- mdb_
dbi_ ⚠close - Close a database handle. Normally unnecessary. Use with care:
- mdb_
dbi_ ⚠flags - Retrieve the DB flags for a database handle.
- mdb_
dbi_ ⚠open - Open a database in the environment.
- mdb_
dcmp ⚠ - Compare two data items according to a particular database.
- mdb_del⚠
- Delete items from a database.
- mdb_
drop ⚠ - Empty or delete+close a database.
- mdb_
env_ ⚠close - Close the environment and release the memory map.
- mdb_
env_ ⚠copy - Copy an LMDB environment to the specified path.
- mdb_
env_ ⚠copy2 - Copy an LMDB environment to the specified path, with options.
- mdb_
env_ ⚠copyfd - Copy an LMDB environment to the specified file descriptor.
- mdb_
env_ ⚠copyfd2 - Copy an LMDB environment to the specified file descriptor, with options.
- mdb_
env_ ⚠create - Create an LMDB environment handle.
- mdb_
env_ ⚠get_ fd - Return the filedescriptor for the given environment.
- mdb_
env_ ⚠get_ flags - Get environment flags.
- mdb_
env_ ⚠get_ maxkeysize - Get the maximum size of keys and #MDB_DUPSORT data we can write.
- mdb_
env_ ⚠get_ maxreaders - Get the maximum number of threads/reader slots for the environment.
- mdb_
env_ ⚠get_ path - Return the path that was used in #mdb_env_open().
- mdb_
env_ ⚠get_ userctx - Get the application information associated with the #MDB_env.
- mdb_
env_ ⚠info - Return information about the LMDB environment.
- mdb_
env_ ⚠open - Open an environment handle.
- mdb_
env_ ⚠set_ assert - Set or reset the assert() callback of the environment. Disabled if liblmdb is built with NDEBUG.
- mdb_
env_ ⚠set_ flags - Set environment flags.
- mdb_
env_ ⚠set_ mapsize - Set the size of the memory map to use for this environment.
- mdb_
env_ ⚠set_ maxdbs - Set the maximum number of named databases for the environment.
- mdb_
env_ ⚠set_ maxreaders - Set the maximum number of threads/reader slots for the environment.
- mdb_
env_ ⚠set_ userctx - Set application information associated with the #MDB_env.
- mdb_
env_ ⚠stat - Return statistics about the LMDB environment.
- mdb_
env_ ⚠sync - Flush the data buffers to disk.
- mdb_get⚠
- Get items from a database.
- mdb_put⚠
- Store items into a database.
- mdb_
reader_ ⚠check - Check for stale entries in the reader lock table.
- mdb_
reader_ ⚠list - Dump the entries in the reader lock table.
- mdb_
set_ ⚠compare - Set a custom key comparison function for a database.
- mdb_
set_ ⚠dupsort - Set a custom data comparison function for a #MDB_DUPSORT database.
- mdb_
set_ ⚠relctx - Set a context pointer for a #MDB_FIXEDMAP database’s relocation function.
- mdb_
set_ ⚠relfunc - Set a relocation function for a #MDB_FIXEDMAP database.
- mdb_
stat ⚠ - Retrieve statistics for a database.
- mdb_
strerror ⚠ - Return a string describing a given error code.
- mdb_
txn_ ⚠abort - Abandon all the operations of the transaction instead of saving them.
- mdb_
txn_ ⚠begin - Create a transaction for use with the environment.
- mdb_
txn_ ⚠commit - Commit all the operations of a transaction into the database.
- mdb_
txn_ ⚠env - Returns the transaction’s #MDB_env
- mdb_
txn_ ⚠id - Return the transaction’s ID.
- mdb_
txn_ ⚠renew - Renew a read-only transaction.
- mdb_
txn_ ⚠reset - Reset a read-only transaction.
- mdb_
version ⚠ - Return the LMDB library version information.
Type Aliases§
- MDB_
assert_ func - A callback function for most LMDB assert() failures, called before printing the message and aborting.
- MDB_
cmp_ func - A callback function used to compare two keys in a database
- MDB_
cursor_ op - Cursor Get operations.
- MDB_dbi
- A handle for an individual database in the DB environment.
- MDB_
msg_ func - A callback function used to print a message from the library.
- MDB_
rel_ func - A callback function used to relocate a position-dependent data item in a fixed-address database.
- mdb_
filehandle_ t - mdb_
mode_ t - mdb_
size_ t - Unsigned type used for mapsize, entry counts and page/transaction IDs.