Skip to main content

ta_db_proxy_sqlite/
lib.rs

1//! ta-db-proxy-sqlite — SQLite proxy plugin for Trusted Autonomy.
2//!
3//! Implements DbProxyPlugin for SQLite databases. Uses a shadow copy approach:
4//! TA keeps a copy of the SQLite file in staging. The agent uses this shadow copy
5//! instead of the real DB. Mutations are captured and the shadow diff is used to
6//! replay on the real DB at `ta draft apply` time.
7//!
8//! This is simpler than a wire protocol proxy since SQLite is file-based.
9
10pub mod apply;
11pub mod classify;
12pub mod plugin;
13
14pub use plugin::SqliteProxyPlugin;