Skip to content

Commit af72ae8

Browse files
author
Terraphim CI
committed
refactor: replace custom SQLite store with terraphim_persistence (Refs #187)
- Remove direct rusqlite dependency from terraphim_usage - Implement Persistable trait for AgentMetricsRecord, ExecutionRecord, ProviderUsageSnapshot, and BudgetSnapshotRecord - Use opendal-backed storage (SQLite via terraphim_persistence default) - All 10 tests pass with memory persistence backend - Leverages existing WAL, compression, and fallback mechanisms
1 parent 983acf5 commit af72ae8

3 files changed

Lines changed: 347 additions & 367 deletions

File tree

Cargo.lock

Lines changed: 61 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/terraphim_usage/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ thiserror = { workspace = true }
1111
anyhow = { workspace = true }
1212
reqwest = { workspace = true }
1313
tokio = { workspace = true }
14-
rusqlite = { version = "0.32", features = ["bundled"] }
1514
clap = { version = "4.5", features = ["derive"] }
1615
colored = "2.1"
1716
indicatif = "0.17"
1817
tracing = "0.1"
1918
async-trait = "0.1"
2019
which = "6.0"
20+
terraphim_persistence = { path = "../terraphim_persistence" }
21+
terraphim_types = { path = "../terraphim_types" }
22+
terraphim_settings = { path = "../terraphim_settings" }

0 commit comments

Comments
 (0)