Skip to main content

Crate zerodds_durability_store_sqlite

Crate zerodds_durability_store_sqlite 

Source
Expand description

sqlite-WAL cold adapter for the Durability-Service (ADR 0009) โ€” the default PERSISTENT backend.

Crate zerodds-durability-store-sqlite. Safety classification: STANDARD.

ACID via PRAGMA journal_mode=WAL; synchronous=NORMAL (crash-safe without an fsync per insert). One row per sample; the (topic, instance, sequence) primary key makes re-sends idempotent. Retention follows the topic Contract (set via DurabilityStore::set_contract); contracts live in memory and are re-registered by the daemon on startup, while the samples themselves survive a full process/system restart in the database file.

For analytics, open the same .db with any SQL tool โ€” the schema is stable and documented here (ADR 0009: adapters expose their own native read interface alongside the DDS path).

Structsยง

SqliteStore
sqlite-backed durability store.