pub struct PostgresCdcReaderConfig {
pub uri: String,
pub publication: String,
pub source_table: String,
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 and a user with REPLICATION privilege.
Tables must have primary keys and REPLICA IDENTITY FULL is recommended
for UPDATE/DELETE support.
Fields§
§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
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.
tls: PostgresTlsConfigTLS/SSL configuration.
Trait Implementations§
Source§impl Clone for PostgresCdcReaderConfig
impl Clone for PostgresCdcReaderConfig
Source§fn clone(&self) -> PostgresCdcReaderConfig
fn clone(&self) -> PostgresCdcReaderConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PostgresCdcReaderConfig
impl PartialEq for PostgresCdcReaderConfig
Source§fn eq(&self, other: &PostgresCdcReaderConfig) -> bool
fn eq(&self, other: &PostgresCdcReaderConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PostgresCdcReaderConfig
impl Serialize for PostgresCdcReaderConfig
Source§impl<'__s> ToSchema<'__s> for PostgresCdcReaderConfig
impl<'__s> ToSchema<'__s> for PostgresCdcReaderConfig
impl Eq 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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.