Expand description
PgPool construction helper.
RFC-v0.7 Wave 0. Reads BackendConnection::Postgres { url, max_connections, min_connections, acquire_timeout } and builds a
sqlx::PgPool. Future waves add TLS root-store plumbing, LISTEN-
connection setup (Q1 + Q2), transaction-pooler detection (Q2
footnote on PgBouncer session-mode requirement), etc. Today this
is a thin pass-through to sqlx::postgres::PgPoolOptions so the
backend connect constructor has a single call site for pool
setup.
Functions§
- build_
pool - Build a
sqlx::PgPoolfrom aBackendConfigwhose connection arm isBackendConnection::Postgres. - build_
pool_ from_ connection - Lower-level helper: build a
PgPooldirectly from aPostgresConnection. Separated frombuild_poolso tests + future migration-CLI tooling can feed a bare connection shape without constructing a fullBackendConfig.