factstr-sqlite
factstr-sqlite is the embedded SQLite store implementation for the shared factstr contract.
Use this crate when an application needs local persistence without running a separate database server.
What it implements
factstr-sqlite implements the shared factstr::EventStore contract, including:
appendqueryappend_ifstream_allstream_tostream_all_durablestream_to_durable
When to use it
Use factstr-sqlite when:
- you want persistent facts in a local SQLite database
- you want the same contract as the in-memory and PostgreSQL stores
- you want durable stream cursor state to survive restart
Store behavior and boundaries
- Committed facts are stored in SQLite.
- Durable stream cursors are stored in SQLite and survive restart.
append_batchesrows are stored only for committed multi-event appends.- Durable replay treats a missing
append_batchesrow as a single-event committed append.
Add to Cargo.toml
[]
= "0.4.1"
= "0.4.1"
Minimal example
use ;
use SqliteStore;
use json;
Related crates
factstr: shared contract and core typesfactstr-memory: in-memory storefactstr-postgres: PostgreSQL-backed store
License
Licensed under either of:
- MIT license
- Apache License, Version 2.0