pigeonhole
An embedded, single-file, wide-column store: BigTable's data model (tables, rows, column families, sparse qualifiers, timestamped versions, TTLs, prefix and range scans) with SQLite's deployment model (one file, a library, no server).
Maturity: 1.x. The public API of
pigeonhole, its companion crates andphdbfollows semver, from 1.0.0 or a crate's first release (D282), and every 1.x release reads and writes file format 4 (the compatibility promise). All four phases are complete, each with its performance gate on the reference machine: the core engine, the wide-column model, the latency engine and hardening. The 1.0 release gate passed on 2026-10-30 atmain790ae3a0. 1.0 ships with documented gaps, listed in the status page.
Status. The blocking API is implemented, disk-backed and crash-safe through the write-ahead log: memtables flush into the file and compact, so data is bounded by the disk, not memory (
Options::memtable_budgetonly sizes the per-shard write buffer). A clean close leaves one file. A table's tablets split and move between shards, so one table's writes spread over them. The async API (get_async,Scan::stream,commit_async) is on by default through theasyncfeature.
Versioning
From 1.0.0 this crate follows semantic versioning; the types that can grow are
#[non_exhaustive], test hooks (the __unstable-hooks feature) and #[doc(hidden)] items are
outside the promise, and only a minor release
may raise the minimum Rust version (D283). The internal
pigeonhole-* crates it depends on make no stability promise of their own and are pinned
exactly. The file format's promise is separate. Details:
versions and compatibility.
Install
or pigeonhole = "1" in Cargo.toml. Requires Rust 1.96 (2024 edition). API docs are on
docs.rs. See the
changelog and the
latest release.
Quickstart
use ;
# let dir = temp_dir;
let db = open?;
let users = db
.table?
.family
.family
.family
.create_if_missing?;
// One row, all families, all or nothing; durable when it returns (GroupSync by default).
users
.mutate
.put
.incr
.put
.commit?;
// A point read borrows the value without allocating.
let name = users.get?.unwrap;
assert_eq!;
// Ordered scans with filters pushed into the read path; a zero-copy cursor or owned rows.
let mut it = users.scan_prefix.family.iter?;
while let Some = it.next_ref?
// Atomic multi-row writes with one durability point.
let mut wb = db.write_batch;
wb.put
.put;
wb.commit_with?;
db.close?;
# Ok::
(Lines starting with # are hidden setup in the rendered docs; this sample runs as a
doctest.)
Documentation
- User guide:
concepts, getting started, durability, transactions, scans and filters, data modeling,
async, reader processes, recovery, errors, the
phdbCLI, Arrow export and performance. - Agent reference: every type and method, limits and error codes on one page.
- API docs and the examples.
Part of Pigeonhole. MIT licensed.