Skip to main content

systemprompt_database/models/
mod.rs

1//! Data models exchanged across the database boundary.
2//!
3//! Typed identifiers, [`DbValue`] and [`JsonRow`] are re-exported from
4//! `systemprompt-identifiers` and `systemprompt-traits` so that downstream
5//! crates only depend on `systemprompt-database` for the database surface.
6//!
7//! Copyright (c) systemprompt.io — Business Source License 1.1.
8//! See <https://systemprompt.io> for licensing details.
9
10pub mod info;
11pub mod query;
12pub mod transaction;
13
14pub use info::{ColumnInfo, DatabaseInfo, IndexInfo, TableInfo};
15pub use query::{DatabaseQuery, FromDatabaseRow, QueryResult, QueryRow, QuerySelector};
16pub use systemprompt_identifiers::{
17    ArtifactId, ClientId, ContentId, ContextId, ExecutionStepId, FileId, LogId, SessionId, SkillId,
18    TaskId, TokenId, TraceId, UserId,
19};
20pub use systemprompt_traits::{DbValue, FromDbValue, JsonRow, ToDbValue, parse_database_datetime};
21pub use transaction::DatabaseTransaction;