pub struct PostgresCdcReaderConfig {
pub publication: String,
pub source_table: String,
pub ssl_ca_location: Option<String>,
pub ssl_ca_pem: Option<String>,
pub ssl_certificate_chain_location: Option<String>,
pub ssl_client_key: Option<String>,
pub ssl_client_key_location: Option<String>,
pub ssl_client_location: Option<String>,
pub ssl_client_pem: Option<String>,
pub uri: String,
pub verify_hostname: Option<bool>,
}Expand description
Postgres CDC input connector configuration.
Uses logical replication to capture ongoing changes from a Postgres database.
Requires a pre-created publication and a user with REPLICATION privilege.
Tables must have primary keys and REPLICA IDENTITY FULL is recommended
for UPDATE/DELETE support.
JSON schema
{
"description": "Postgres CDC input connector configuration.\n\nUses logical replication to capture ongoing changes from a Postgres database.\nRequires a pre-created publication and a user with REPLICATION privilege.\nTables must have primary keys and `REPLICA IDENTITY FULL` is recommended\nfor UPDATE/DELETE support.",
"allOf": [
{
"description": "TLS/SSL configuration for PostgreSQL connectors.",
"type": "object",
"properties": {
"ssl_ca_location": {
"description": "Path to a file containing a sequence of CA certificates in PEM format.",
"type": [
"string",
"null"
]
},
"ssl_ca_pem": {
"description": "A sequence of CA certificates in PEM format.",
"type": [
"string",
"null"
]
},
"ssl_certificate_chain_location": {
"description": "The path to the certificate chain file.\nThe file must contain a sequence of PEM-formatted certificates,\nthe first being the leaf certificate, and the remainder forming\nthe chain of certificates up to and including the trusted root certificate.",
"type": [
"string",
"null"
]
},
"ssl_client_key": {
"description": "The client certificate key in PEM format.",
"type": [
"string",
"null"
]
},
"ssl_client_key_location": {
"description": "Path to the client certificate key.",
"type": [
"string",
"null"
]
},
"ssl_client_location": {
"description": "Path to the client certificate.",
"type": [
"string",
"null"
]
},
"ssl_client_pem": {
"description": "The client certificate in PEM format.",
"type": [
"string",
"null"
]
},
"verify_hostname": {
"description": "True to enable hostname verification when using TLS. True by default.",
"type": [
"boolean",
"null"
]
}
}
},
{
"type": "object",
"required": [
"publication",
"source_table",
"uri"
],
"properties": {
"publication": {
"description": "Name of the pre-created Postgres publication to replicate from.",
"type": "string"
},
"source_table": {
"description": "Postgres table to replicate (e.g. \"public.orders\").\nMust be included in the publication.",
"type": "string"
},
"uri": {
"description": "Postgres connection URI. The user must have REPLICATION privilege.\nSee: <https://docs.rs/tokio-postgres/0.7.12/tokio_postgres/config/struct.Config.html>",
"type": "string"
}
}
}
]
}Fields§
§publication: StringName of the pre-created Postgres publication to replicate from.
source_table: StringPostgres table to replicate (e.g. “public.orders”). Must be included in the publication.
ssl_ca_location: Option<String>Path to a file containing a sequence of CA certificates in PEM format.
ssl_ca_pem: Option<String>A sequence of CA certificates in PEM format.
ssl_certificate_chain_location: Option<String>The path to the certificate chain file. The file must contain a sequence of PEM-formatted certificates, the first being the leaf certificate, and the remainder forming the chain of certificates up to and including the trusted root certificate.
ssl_client_key: Option<String>The client certificate key in PEM format.
ssl_client_key_location: Option<String>Path to the client certificate key.
ssl_client_location: Option<String>Path to the client certificate.
ssl_client_pem: Option<String>The client certificate in PEM format.
uri: StringPostgres connection URI. The user must have REPLICATION privilege. See: https://docs.rs/tokio-postgres/0.7.12/tokio_postgres/config/struct.Config.html
verify_hostname: Option<bool>True to enable hostname verification when using TLS. True by default.
Implementations§
Source§impl PostgresCdcReaderConfig
impl PostgresCdcReaderConfig
pub fn builder() -> PostgresCdcReaderConfig
Trait Implementations§
Source§impl Clone for PostgresCdcReaderConfig
impl Clone for PostgresCdcReaderConfig
Source§fn clone(&self) -> PostgresCdcReaderConfig
fn clone(&self) -> PostgresCdcReaderConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more