Skip to main content

sql_middleware/postgres/
mod.rs

1//! `PostgreSQL` backend glue.
2//!
3//! Submodules mirror the SQLite/Turso structure for consistency:
4//! - `config`: connection configuration and pool setup
5//! - `params`: parameter conversion between middleware and `PostgreSQL` types
6//! - `query`: result extraction and building
7//! - `executor`: database operation execution
8
9pub(crate) mod client_exec;
10pub mod config;
11pub mod executor;
12pub mod params;
13pub mod query;
14pub mod transaction;
15pub mod typed;
16
17// Re-export the public API
18pub use config::{PgConfig, PostgresOptions, PostgresOptionsBuilder};
19pub use executor::{execute_batch, execute_dml, execute_select};
20pub use params::Params;
21pub use query::{build_result_set, execute_dml_on_client, execute_query_on_client};
22pub use transaction::{Prepared, Tx, begin_transaction};
23pub use typed::{
24    Idle as TypedIdle, InTx as TypedInTx, PgConnection as TypedPgConnection, PgManager,
25};