Skip to main content

vantage_redb/
lib.rs

1//! # vantage-redb
2//!
3//! Embedded redb key-value persistence for the Vantage framework.
4//!
5//! Implements [`vantage_table::traits::table_source::TableSource`] over [redb], with full CRUD,
6//! ACID write transactions, and column-driven secondary indexes maintained
7//! atomically alongside main rows.
8//!
9//! ## Capabilities
10//!
11//! - CBOR row bodies that preserve `RedbTypeVariants` tags through
12//!   round-trip.
13//! - Secondary indexes opt-in via `ColumnFlag::Indexed`. Index tables use
14//!   redb's composite keys `(value_bytes, id)` for non-unique columns.
15//! - Conditions limited to `eq` / `in_` on indexed columns (or the table's
16//!   id column, which short-circuits to a direct main-table lookup).
17//! - No query builder — redb has no query language.
18
19pub mod condition;
20pub mod operation;
21pub mod prelude;
22pub mod redb;
23pub mod types;
24
25pub use condition::RedbCondition;
26pub use operation::RedbOperation;
27pub use redb::Redb;
28pub use types::{AnyRedbType, RedbType, RedbTypeVariants};