Rindle docs and package mapSkip to main content

Module storage

Module storage 

Source
Expand description

Spec 10SQLite-backed operator scratch state (the server spill path).

This is the #[cfg(feature = "sqlite")] half of the former rindle::storage module, lifted into rindle-sqlite: DatabaseStorage / OpStorage over rusqlite, plus the StorageValue blob codec. The backend-agnostic Storage / StorageValue / StorageProvider / MemoryStorage / StorageFactory types stay in rindle::storage.

Each engine gets its own DatabaseStorage (a private temp-file DB), so a single database hosts exactly one set of operators. Every operator is handed a unique, auto-incrementing op_id and all of them share one storage(op, key) -> val table — no per-tenant/client-group column is needed. OpStorage implements [rindle::storage::Storage]; DatabaseStorage implements [rindle::storage::StorageProvider], so a graph built with StorageFactory::custom(Rc::new(database_storage)) spills operator state to SQLite.

Structs§

DatabaseStorage
DatabaseStorageOptions
OpStorage
One operator’s namespaced scratch map inside the shared SQLite storage table, keyed by this operator’s unique op_id.