Expand description
§vantage-redb
Embedded redb key-value persistence for the Vantage framework.
Implements vantage_table::traits::table_source::TableSource over redb, with full CRUD,
ACID write transactions, and column-driven secondary indexes maintained
atomically alongside main rows.
§Capabilities
- CBOR row bodies that preserve
RedbTypeVariantstags through round-trip. - Secondary indexes opt-in via
ColumnFlag::Indexed. Index tables use redb’s composite keys(value_bytes, id)for non-unique columns. - Conditions limited to
eq/in_on indexed columns (or the table’s id column, which short-circuits to a direct main-table lookup). - No query builder — redb has no query language.
Re-exports§
pub use condition::RedbCondition;pub use operation::RedbOperation;pub use redb::Redb;pub use types::AnyRedbType;pub use types::RedbType;pub use types::RedbTypeVariants;
Modules§
- condition
- Condition type for redb tables.
- operation
- redb-specific operation trait that produces
RedbConditionfrom columns. - prelude
- Convenient re-exports.
- redb
- Redb data source — thin wrapper around an
Arc<redb::Database>, plus the shared read/write helpers consumed by the trait impls inimpls/. - types
- redb type system.