Module postgres

Module postgres 

Source
Expand description

PostgreSQL backend glue.

Submodules mirror the SQLite/Turso/LibSQL structure for consistency:

  • config: connection configuration and pool setup
  • params: parameter conversion between middleware and PostgreSQL types
  • query: result extraction and building
  • executor: database operation execution

Re-exports§

pub use config::PgConfig;
pub use config::PostgresOptions;
pub use config::PostgresOptionsBuilder;
pub use executor::execute_batch;
pub use executor::execute_dml;
pub use executor::execute_select;
pub use params::Params;
pub use query::build_result_set;
pub use query::build_result_set_from_rows;
pub use query::execute_dml_on_client;
pub use query::execute_query_on_client;
pub use transaction::Prepared;
pub use transaction::Tx;
pub use transaction::begin_transaction;
pub use typed::Idle as TypedIdle;
pub use typed::InTx as TypedInTx;
pub use typed::PgConnection as TypedPgConnection;
pub use typed::PgManager;

Modules§

config
executor
params
query
transaction
typed
Experimental bb8-backed Postgres typestate API. Provides PgConnection<Idle> / PgConnection<InTx> using an owned client and explicit BEGIN/COMMIT/ROLLBACK.