Expand description
g8-store — embedded SQLite persistence layer for the G8.
Provides the StoreConnection trait and its rusqlite-backed implementation
RusqliteStore. All schema migrations are embedded in the binary via
refinery.
§Opening a store
use g8_store::RusqliteStore;
use std::path::Path;
let mut store = RusqliteStore::open(Path::new(".g8/store.db")).unwrap();
store.migrate().unwrap();§In-memory store (tests)
use g8_store::RusqliteStore;
let mut store = RusqliteStore::open_in_memory().unwrap();
store.migrate().unwrap();Modules§
Structs§
- Apply
Scan Report - Summary returned by
StoreConnection::apply_scan. - Pairing
Error - A capability that lacks its required paired convergence test.
- Plan
Filter - Filter for
StoreConnection::list_plans. - RawIntent
Check Payload - Raw JSON payloads returned by the composite
planner_intent_checkquery. - Rusqlite
Store - SQLite-backed implementation of
StoreConnection. - Scan
Result - Minimal scan result accepted by
StoreConnection::apply_scan. - Stale
Plan Candidate - A dispatched plan that has exceeded the substrate’s stale threshold.
- Watch
Handle - Handle returned by
StoreConnection::watch.
Enums§
- Overlap
Kind - How a plan relates to a capability it touches (junction table column).
- Pairing
Error Reason - Reason codes matching ARCH §14 stable vocabulary.
- Plan
Intent Relation - How a plan relates to an intent it is linked to (junction table column).
- Store
Error - Errors originating from
g8-storeoperations.
Traits§
- Store
Connection - The trait abstraction over the underlying storage.