Expand description
PostgreSQL connection backends.
This module provides two interchangeable connection implementations, selected at compile time via feature flags:
-
libpq(default): Uses the C libpq library via FFI. Requireslibpq-devandlibssl-devat build time. -
rustls-tls: Pure-Rust implementation usingrustlswith theaws-lc-rscrypto backend for hardware-accelerated TLS (AES-NI, AVX2). Requirescmake+ C compiler at build time. When enabled alongside the defaultlibpqfeature,rustls-tlstakes priority so thatfeatures = ["rustls-tls"]works without needingdefault-features = false.
Both backends expose the same public types: PgReplicationConnection and
PgResult.
Structsยง
- PgReplication
Connection - Safe wrapper around PostgreSQL connection for replication
- PgResult
- Safe wrapper for PostgreSQL result