pub fn build_replication_config(config: &PostgresCdcConfig) -> ReplicationConfigExpand description
Builds a [pgwire_replication::ReplicationConfig] from a
PostgresCdcConfig.
Maps connection parameters, replication slot, publication, start LSN, keepalive interval, and TLS settings.
§TLS Mapping
SslMode | TlsConfig method |
|---|---|
Disable | disabled() |
Prefer | require() (no prefer in upstream) |
Require | require() |
VerifyCa | verify_ca(ca_path) |
VerifyFull | verify_full(ca_path) |
Optional SNI hostname and mTLS client cert/key are chained as builder steps when their config fields are set.
§Note
pgwire-replication manages slot creation externally — use
ensure_replication_slot() before calling this.