Crate lmdb_master_sys

source ·

Structs

Information about the environment
Statistics for a database in the environment
Generic structure used for passing keys and data in and out

Constants

Position at first key/data item
Position at first data item of current key. Only for #MDB_DUPSORT
Position at key/data pair. Only for #MDB_DUPSORT
position at key, nearest data. Only for #MDB_DUPSORT
Return key/data at current cursor position
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
Position at last key/data item
Position at last data item of current key. Only for #MDB_DUPSORT
Position at next data item
Position at next data item of current key. Only for #MDB_DUPSORT
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
Position at first data item of next key
Position at previous data item
Position at previous data item of current key. Only for #MDB_DUPSORT
Position at previous page and return up to a page of duplicate data items. Only for #MDB_DUPFIXED
Position at last data item of previous key
Position at specified key
Position at specified key, return key + data
Position at first key greater than or equal to specified key.

Functions

Compare two data items according to a particular database.
Close a cursor handle.
Return count of duplicates for current key.
Return the cursor’s database handle.
Delete current key/data pair
Retrieve by cursor.
Create a cursor handle.
Store by cursor.
Renew a cursor handle.
Return the cursor’s transaction handle.
Close a database handle. Normally unnecessary. Use with care:
Retrieve the DB flags for a database handle.
Open a database in the environment.
Compare two data items according to a particular database.
Delete items from a database.
Empty or delete+close a database.
Close the environment and release the memory map.
Copy an LMDB environment to the specified path.
Copy an LMDB environment to the specified path, with options.
Copy an LMDB environment to the specified file descriptor.
Copy an LMDB environment to the specified file descriptor,
Create an LMDB environment handle.
Return the filedescriptor for the given environment.
Get environment flags.
Get the maximum size of keys and #MDB_DUPSORT data we can write.
Get the maximum number of threads/reader slots for the environment.
Return the path that was used in #mdb_env_open().
Get the application information associated with the #MDB_env.
Return information about the LMDB environment.
Open an environment handle.
Set or reset the assert() callback of the environment. Disabled if liblmdb is built with NDEBUG.
Set environment flags.
Set the size of the memory map to use for this environment.
Set the maximum number of named databases for the environment.
Set the maximum number of threads/reader slots for the environment.
Set application information associated with the #MDB_env.
Return statistics about the LMDB environment.
Flush the data buffers to disk.
Get items from a database.
Store items into a database.
Check for stale entries in the reader lock table.
Dump the entries in the reader lock table.
Set a custom key comparison function for a database.
Set a custom data comparison function for a #MDB_DUPSORT database.
Set a context pointer for a #MDB_FIXEDMAP database’s relocation function.
Set a relocation function for a #MDB_FIXEDMAP database.
Retrieve statistics for a database.
Return a string describing a given error code.
Abandon all the operations of the transaction instead of saving them.
Create a transaction for use with the environment.
Commit all the operations of a transaction into the database.
Returns the transaction’s #MDB_env
Return the transaction’s ID.
Renew a read-only transaction.
Reset a read-only transaction.
Return the LMDB library version information.

Type Definitions

A callback function for most LMDB assert() failures,
A callback function used to compare two keys in a database
Cursor Get operations.
A handle for an individual database in the DB environment.
A callback function used to print a message from the library.
A callback function used to relocate a position-dependent data item
Unsigned type used for mapsize, entry counts and page/transaction IDs. It is normally size_t, hence the name. Defining MDB_VL32 makes it uint64_t, but do not try this unless you know what you are doing.