Berkeley DB Reference Version 2026.09.11

Berkeley DB Documentation

The complete reference for libdb (Berkeley DB) — the embedded, transactional key/value storage engine. Generated from Markdown source by docs_src/build.py; available as HTML (here), PDF, and man pages. Version and copyright are single-sourced from docs_src/_data/site.toml + dist/RELEASE.

This reference tracks the community fork at github.com/berkeleydb/libdb, which ships under CalVer (vYYYY.0M). See the releases for the full list and per-release notes; the version this documentation was built for is shown in the page header. Fork releases are a continuation of, and distinct from, the Sleepycat/Oracle 5.3.x line (the last Sleepycat-licensed release was 5.3.28).

API reference

Guides

Man pages

Every public API has a section-3 man page, plus a library overview (libdb(3)). They are built to docs-build/man/man3/ (787 pages) and shipped in the release man-page tarball. Install and use like any system man page, e.g. man libdb, man db_get.

PDF downloads

Each book is also available as a PDF:

Book PDF
C API reference api_c.pdf
C++/STL API reference api_stl.pdf
Programmer's Reference Guide guides_programmer_reference.pdf
Getting Started with Data Storage guides_gsg.pdf
Getting Started with Transactions guides_gsg_txn.pdf
Getting Started with Replication guides_gsg_db_rep.pdf
Getting Started with Data Storage (C++) guides_gsg_cxx.pdf
Getting Started with Data Storage (Java) guides_gsg_java.pdf
Getting Started with Transactions (C++) guides_gsg_txn_cxx.pdf
Getting Started with Transactions (Java) guides_gsg_txn_java.pdf
Getting Started with Replication (C++) guides_gsg_db_rep_cxx.pdf
Getting Started with Replication (Java) guides_gsg_db_rep_java.pdf
Collections tutorial (Java) guides_collections.pdf
Berkeley DB SQL interface guides_bdb-sql.pdf
Installation guides_installation.pdf
Upgrading guides_upgrading.pdf
Porting guides_porting.pdf
Article: In-Memory databases guides_articles_inmemory.pdf
Article: Message-text handling guides_articles_mssgtxt.pdf

The same PDFs are attached to each GitHub release.


The C# language-binding manual (Sandcastle, not DocBook) is archived separately and is not part of this Markdown-sourced tree. The Java API reference above is regenerated from source by javadoc rather than migrated from DocBook.