Skip to main content

Module sqlite

Module sqlite 

Source
Expand description

SQLite-backed Cache implementation. See sqlite::SqliteCache. SQLite-backed Cache implementation.

Wraps a single rusqlite::Connection behind Arc<Mutex<>> and runs every statement inside tokio::task::spawn_blocking because rusqlite is synchronous + !Send. Schema is the single CREATE TABLE in schema.sql (no migrations in M1 — IF NOT EXISTS is the upgrade path).

BuildEvent::Failed.error is stored as JSON in the error_json column so the typed BuildError survives the roundtrip without lossy stringification.

Structs§

SqliteCache
SQLite cache backend. Cheap to clone (Arc<Mutex<Connection>> shared).