Skip to main content

Crate spectra_backend_sqlite

Crate spectra_backend_sqlite 

Source
Expand description

Durable embedded SQLite metrics and events storage.

Enable with the spectra feature sqlite and wire through Spectra::builder().

  • SqliteMetricsBackend::new / SqliteEventsBackend::new — open or create database files
  • Parent directories are created automatically; uses spawn_blocking for rusqlite I/O.
  • query_aggregate is not yet implemented (returns empty series).
  • Default event query limit is 1000 rows when limit is unset.

Structs§

SqliteEventsBackend
Durable SQLite structured-event storage in the spectra_events table.
SqliteMetricsBackend
Durable SQLite metrics storage in the spectra_metrics table.