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 by modules

  • C++ API — the umbrella module of the mdbx namespace
  • 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::exception hierarchy 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++:

Entry points

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.