chronon-backend-sqlite
SQLite SchedulerStore adapter for Chronon.
Audience
Backend engineers and test authors needing embedded, file-backed persistence.
Single-writer limitation: SQLite serializes writes. One Chronon scheduler + worker pool on a single host is fine; for concurrent claim-heavy workloads prefer PostgreSQL or the Postgres + Redis composite backend.
Compose with Chronon
use Arc;
use *;
use SqliteSchedulerStore;
let store: = new;
let chronon = new
.scheduler_store
.embedded
.build?;
Runnable example: cargo run -p uf-chronon --example sqlite_boot --features sqlite.
Configuration
| API | Use when |
|---|---|
SqliteSchedulerStore::new(path) |
File on disk (/var/lib/chronon/chronon.db) |
SqliteSchedulerStore::connect(url) |
Full URL including :memory: for tests |
SqliteSchedulerStore::from_pool(pool) |
Host already owns an sqlx pool |
Schema bootstrap runs automatically on connect.
Facade feature
= { = "...", = false, = ["sqlite"] }
Contract tests
Runs in PR CI alongside chronon-backend-mem.
Documentation
See also: chronon-backend-sql-common.