Skip to main content

Crate g8_store

Crate g8_store 

Source
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§

migrations

Structs§

ApplyScanReport
Summary returned by StoreConnection::apply_scan.
PairingError
A capability that lacks its required paired convergence test.
PlanFilter
Filter for StoreConnection::list_plans.
RawIntentCheckPayload
Raw JSON payloads returned by the composite planner_intent_check query.
RusqliteStore
SQLite-backed implementation of StoreConnection.
ScanResult
Minimal scan result accepted by StoreConnection::apply_scan.
StalePlanCandidate
A dispatched plan that has exceeded the substrate’s stale threshold.
WatchHandle
Handle returned by StoreConnection::watch.

Enums§

OverlapKind
How a plan relates to a capability it touches (junction table column).
PairingErrorReason
Reason codes matching ARCH §14 stable vocabulary.
PlanIntentRelation
How a plan relates to an intent it is linked to (junction table column).
StoreError
Errors originating from g8-store operations.

Traits§

StoreConnection
The trait abstraction over the underlying storage.