API reference
The C and C++ API reference is generated from the source annotations
(mdbx.h, mdbx.h++) by Doxygen and is available in English only: a Russian
translation does not exist yet. The API annotations are the single source of
truth.
C API by modules
The C API is organized into documentation groups ("modules"); each module
page below carries the full documentation of its functions, macros and
types. The C API overview holds the core handles
(MDBX_env, MDBX_val, ...) and common definitions, while the
Create/Read/Update/Delete module carries the
Quick Reference decision tables for the
insert/update/delete cases (unique-key and DUPSORT tables).
- C API — core handles and common definitions
-
Opening & Closing — environment
create/open/close:
mdbx_env_create(),mdbx_env_open(), ... -
Transactions —
mdbx_txn_begin(),mdbx_txn_commit(), ... -
Tables — table (DBI) handles:
mdbx_dbi_open(),mdbx_map_handle(), ... -
Create/Read/Update/Delete —
mdbx_put(),mdbx_get(),mdbx_replace(),mdbx_del(), ... -
Cursors — cursor handling and operations:
mdbx_cursor_open(),mdbx_cursor_get(), ... -
Statistics & Information —
mdbx_env_info(),mdbx_env_stat(),mdbx_dbi_stat(), ... -
Settings — geometry and environment
options:
mdbx_env_set_geometry(), ... - SYNC MODES — durability flags and their LMDB-migration notes
-
Range query estimation —
mdbx_estimate_*()cost/size hints - Extra operations — copying, paths, reader checks, and the rest of the odds and ends
-
Checking and Recovery —
mdbx_chk-style internal API for low-level inspection -
Logging and runtime debug —
mdbx_debug_flags(),mdbx_logger(), ... - Common Macros — feature test and helper macros
-
Value-to-Key /
Key-to-Value —
mdbx_to_key()/mdbx_from_key()helpers to avoid custom comparators -
Error handling — error codes and messages:
mdbx_strerror(),mdbx_liberr2str(), ...
C++ API by modules
-
C++ API — the umbrella module of the
mdbxnamespace - Core — environment, transactions, cursors, key-value tables and map handles
-
Slices and Buffers —
mdbx::slice,mdbx::buffer, ... and the value-to-key/key-to-value codecs -
Exceptions and Errors —
the
mdbx::exceptionhierarchy and error-to-exception mapping
Core types at a glance
C: the opaque handles MDBX_env, MDBX_txn, MDBX_cursor, MDBX_dbi
and MDBX_val are described on the C API page;
the functions manipulating them live in the modules above.
C++:
- Environments:
mdbx::env/mdbx::env_managed - Transactions:
mdbx::txn/mdbx::txn_managed - Cursors:
mdbx::cursor/mdbx::cursor_managed
Entry points
- Annotated index — all classes and structures
- Classes · Class hierarchy
- Namespaces
- Modules — the complete list of documentation groups (the same modules as listed above)
- Class members · Macros
- File list — the three headers with their structures and macros; the function documentation lives in the module pages above
- Deprecated list
The headers themselves, with the complete inline documentation:
Also in this section: command-line tools.
Getting-started guidance lives in the guides; the first steps page shows the canonical env → transaction → DBI → get/put flow with runnable examples.