Skip to main content

systemprompt_database/services/
mod.rs

1//! Service layer: provider abstraction, owned [`Database`] handle,
2//! budgeted job transactions, transaction helpers, batch execution, and CLI
3//! display traits.
4//!
5//! Copyright (c) systemprompt.io — Business Source License 1.1.
6//! See <https://systemprompt.io> for licensing details.
7
8pub mod budgeted;
9pub mod database;
10pub mod display;
11pub mod executor;
12pub mod postgres;
13pub mod provider;
14pub mod schema_linter;
15pub mod transaction;
16
17pub use budgeted::BudgetedDb;
18pub use database::{Database, DatabaseExt, DbPool};
19pub use display::DatabaseCliDisplay;
20pub use executor::SqlExecutor;
21pub use postgres::PostgresProvider;
22pub use postgres::connection::{PoolConfig, mark_schema_changed};
23pub use postgres::transaction::PostgresTransaction;
24pub use provider::DatabaseProvider;
25pub use schema_linter::{
26    LintError, LintSeverity, created_table_names, lint_declarative_schema, lint_declarative_schemas,
27};
28pub use transaction::{BoxFuture, with_transaction_retry};