objectiveai_cli/db/mod.rs
1//! Postgres-backed state for the CLI.
2//!
3//! Replaces the legacy `filesystem::db` SQLite tree. One sqlx `PgPool`
4//! over the objectiveai-db cluster whose `postgresql://` URL is
5//! published in the `db` spawn lock (or a remote postgres pointed at
6//! via `db config address`), lazily initialized by
7//! `Context::db_client()`; every tier ([`tags`], [`message_queue`],
8//! [`logs`]) takes `&Pool` and runs natively async.
9
10mod error;
11pub use error::*;
12
13mod pool;
14pub use pool::*;
15
16mod init;
17pub use init::*;
18
19pub mod agent_continuations;
20pub mod agent_refs;
21pub mod compartment;
22pub mod instances;
23pub mod laboratory_attachments;
24pub mod logs;
25pub mod query;
26pub mod tags;
27pub mod time;
28pub mod tag_groups;
29pub mod message_queue;