donadb_rel/lib.rs
1//! Relational overlay for DonaDB.
2//!
3//! `donadb-rel` adds typed schemas, secondary indexes, predicate scans, and
4//! foreign-key traversal on top of DonaDB without changing the storage engine.
5//! Records are encoded into opaque DonaDB values, while indexes live in dedicated
6//! domains and are updated in the same write batch as the primary record.
7//!
8//! The layer is intentionally additive: raw DonaDB reads and writes can coexist
9//! with schema-aware access for applications that need both direct key-value
10//! storage and relational query ergonomics.
11
12pub mod codec;
13pub mod error;
14pub mod index;
15pub mod predicate;
16pub mod relation;
17pub mod schema;
18
19pub use error::RelError;
20pub use index::{IndexSpec, IndexWriter};
21pub use predicate::{FieldOp, Predicate};
22pub use relation::{RelTable, RelTableConfig};
23pub use schema::{Field, FieldType, FieldValue, Record, Schema};