id_effect_sql 0.7.0

Driver-agnostic SQL client traits for id_effect — @effect/sql-style boundaries
Documentation
//! **PostgreSQL driver** (feature `pg`) — sqlx [`PgPool`](sqlx::PgPool) and
//! [`PgSqlClient`] implementing [`SqlClient`](crate::SqlClient).
//!
//! [`PgSqlClient::layer`] is the scoped client layer: it opens the pool when it is built and
//! closes it when its scope closes, providing both [`SqlClientService`](crate::SqlClientService)
//! and the shared [`PgPool`] ([`PgSqlEnv`]). Its effects need a tokio runtime with its IO
//! driver (sqlx): run them on `id_effect_tokio::TokioRuntime` or a `TokioExecutor`.
//!
//! See `docs/platform/adrs/adr-sql-driver-choice.md`.

mod client;
mod config;
mod error;
mod pool_key;
mod providers;
mod transaction;

pub use client::PgSqlClient;
pub use config::{PgPoolConfig, pg_pool_from_config, pg_pool_from_config_lazy};
pub use error::PgSqlError;
pub use pool_key::{PgPool, PgPoolEnv, provide_pg_pool};
pub use providers::{PgSqlEnv, provide_pg_sql_client};
pub use transaction::PgSqlTransaction;