Expand description
Encrypted, portable, embedded page store exposing two surfaces: a B+ tree for sorted byte-table workloads (ACID transactions, range scans) and a Segment File API for engine-owned append-mostly encrypted files (vectors, columnar blocks, FTS postings).
Re-exports§
pub use options::OpenOptions;pub use options::RetainPolicy;
Modules§
- options
OpenOptions— explicit memory budgets for aDbinstance.- vfs
- Virtual file-system abstraction: File trait, lock primitives, vectored I/O.
Structs§
- Apply
Stats - Statistics returned by
apply_incremental. - Commit
Id - Monotonically increasing commit sequence number.
- Compact
Budget - Per-call budget for
Db::compact_step. - Compact
Progress - Progress report returned by
Db::compact_step. - Compact
Stats - Statistics returned by
Db::compact_now. - Counter
Ref - A handle to a named durable monotonic counter, scoped to a
WriteTxn. - Db
- Top-level handle to an open database.
- DbStats
- Point-in-time snapshot of database runtime metrics.
- Deep
Walk Report - Full report produced by
run_deep_walk. - Drift
Issue - A catalog-vs-disk discrepancy.
- Extent
Ref - Bulk-read reference: a contiguous range starting at
start_page_idof lengthcount. - GcStats
- Statistics returned by
Db::gc_now. - Mmap
View - A read-only zero-copy view over already-decrypted segment data.
- Page
Issue - A single page-level issue found during deep walk.
- ReadTxn
- A snapshot-isolated read handle. Holds the
BTreeroot and allocation cursor at the time the transaction was opened. Unregisters automatically on drop. - RealmId
- Opaque cryptographic isolation scope identifier.
- Realm
Quotas - Catalog value for a quota row. Default = no caps.
- Scratch
Offset - Opaque handle returned by
SpillScope::append. Pass toSpillScope::readto decrypt and retrieve the bytes. - Secret
Key - 256-bit key-encryption key supplied by the embedder.
- Segment
Issue - An issue found in a segment file during deep walk.
- Segment
Meta - Catalog value for a segment row.
- Segment
Reader - Segment
Writer - Snapshot
Stats - Statistics returned by a full or incremental snapshot export operation.
- Spill
Scope - A borrowed view into an active
WriteTxnthat offers AEAD-encrypted spill storage in a per-transaction tmp file. - Write
Txn - An exclusive write transaction. At most one
WriteTxnexists perDbat any time — the writer mutex enforces this. Eithercommitorabortmust be called; if theWriteTxnis dropped without either, dirty pages are silently discarded (equivalent to abort).
Enums§
- Cipher
Id - On-wire
cipher_idbyte values. The numeric values are stable and part of the persisted format. - Corruption
Detail - Per-reason detail for
PagedbError::Corruption. Each variant carries exactly the fields the failure-mode contract specifies — no optional fields, no field reuse across reasons. - DbMode
- The operating mode of an open
Dbhandle. - Evictable
- Whether a segment is authoritative or replaceable under quota pressure.
- Pagedb
Error - Authoritative error type for every fallible operation in this crate.
- Quota
Kind - Quota failure reason, distinguishing which resource was exhausted.
- Reader
Stall Policy - What to do when an open reader pins resources the writer needs to reclaim.
- Segment
Kind - Engine-defined segment type tag. Only
Unspecifiedships today; engine adapters add concrete variants later, so this is#[non_exhaustive]and growing it stays a non-breaking change. - Segment
Page Kind - Segment-legal page kind subset.
Functions§
- run_
deep_ walk - Run a deep walk against an already-opened
Db<V>.