systemprompt-database 0.64.0

PostgreSQL infrastructure for systemprompt.io AI governance. SQLx-backed pool, generic repository traits, and compile-time query verification. Part of the systemprompt.io AI governance pipeline.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Data models exchanged across the database boundary.
//!
//! [`DbValue`] and [`JsonRow`] are re-exported from `systemprompt-traits`
//! because they are part of the [`crate::DatabaseProvider`] signatures.
//!
//! Copyright (c) systemprompt.io — Business Source License 1.1.
//! See <https://systemprompt.io> for licensing details.

pub mod info;
pub mod query;
pub mod transaction;

pub use info::{ColumnInfo, DatabaseInfo, IndexInfo, TableInfo};
pub use query::{DatabaseQuery, QueryResult, QueryRow, QuerySelector};
pub use systemprompt_traits::{DbValue, FromDbValue, JsonRow, ToDbValue, parse_database_datetime};
pub use transaction::DatabaseTransaction;