Skip to main content

Module sqlite_store

Module sqlite_store 

Source
Expand description

SQLite-backed telemetry store.

Implements TelemetryStore using an embedded SQLite database. Persists metrics, events, snapshots, and alert history with configurable retention policies. Supports time-range queries and automatic purging of old data.

§Example

let store = SqliteTelemetryStore::open("./dol.db")?;
store.write_metric(sample)?;
let latest = store.latest_metrics()?;

Structs§

RetentionPolicy
Retention policy controlling how long historical data is kept.
RetentionStats
Statistics about data purged by retention policy.
SqliteTelemetryStore
A TelemetryStore backed by an embedded SQLite database.
StoreStats
Statistics about the store’s contents.