pub struct PostgresCdcReaderConfig {
pub uri: String,
pub publication: String,
pub source_table: String,
pub run_source_migrations: bool,
pub tls: PostgresTlsConfig,
}Expand description
Postgres CDC input connector configuration.
Uses logical replication to capture ongoing changes from a Postgres database.
Requires a pre-created publication. Automatic source migrations require a
superuser; with administrator-installed source objects and
run_source_migrations = false, a replication role with the documented
source-table and etl state-store privileges can be used instead.
Tables must have primary keys and REPLICA IDENTITY FULL is recommended
for UPDATE/DELETE support.
Fields§
§uri: StringPostgres connection URI. Automatic source migrations require a superuser.
With run_source_migrations = false, the user needs REPLICATION and the
grants described in Running as a non-superuser.
See: https://docs.rs/tokio-postgres/0.7.12/tokio_postgres/config/struct.Config.html
publication: StringName of the pre-created Postgres publication to replicate from.
source_table: StringPostgres table to replicate, schema-qualified (e.g. “public.orders”). A name given without a schema refers to a table in “public”. Must be included in the publication.
run_source_migrations: boolWhether the connector runs etl’s source migrations on startup.
The source migrations install the schema helper functions and the
ddl_command_end event trigger. Creating the event trigger requires a
superuser, so a de-elevated role can set this to false and have an
administrator install the source objects out-of-band. Disabling this
does not skip the state-store migrations, which run on every start
regardless.
Default: true.
tls: PostgresTlsConfigTLS/SSL configuration.
Implementations§
Trait Implementations§
Source§impl Clone for PostgresCdcReaderConfig
impl Clone for PostgresCdcReaderConfig
Source§impl Debug for PostgresCdcReaderConfig
impl Debug for PostgresCdcReaderConfig
Source§impl<'de> Deserialize<'de> for PostgresCdcReaderConfig
impl<'de> Deserialize<'de> for PostgresCdcReaderConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for PostgresCdcReaderConfig
Source§impl PartialEq for PostgresCdcReaderConfig
impl PartialEq for PostgresCdcReaderConfig
Source§impl Serialize for PostgresCdcReaderConfig
impl Serialize for PostgresCdcReaderConfig
impl StructuralPartialEq for PostgresCdcReaderConfig
Auto Trait Implementations§
impl Freeze for PostgresCdcReaderConfig
impl RefUnwindSafe for PostgresCdcReaderConfig
impl Send for PostgresCdcReaderConfig
impl Sync for PostgresCdcReaderConfig
impl Unpin for PostgresCdcReaderConfig
impl UnsafeUnpin for PostgresCdcReaderConfig
impl UnwindSafe for PostgresCdcReaderConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.