Skip to main content

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//! [`tasks`], [`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 compartment;
21pub mod instances;
22pub mod logs;
23pub mod query;
24pub mod tags;
25pub mod time;
26pub mod tag_groups;
27pub mod message_queue;
28pub mod tasks;