#[non_exhaustive]pub struct PostgresqlSourceConfig {
pub include_objects: Option<PostgresqlRdbms>,
pub exclude_objects: Option<PostgresqlRdbms>,
pub replication_slot: String,
pub publication: String,
pub max_concurrent_backfill_tasks: i32,
/* private fields */
}
Expand description
PostgreSQL data source configuration
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.include_objects: Option<PostgresqlRdbms>
PostgreSQL objects to include in the stream.
exclude_objects: Option<PostgresqlRdbms>
PostgreSQL objects to exclude from the stream.
replication_slot: String
Required. Immutable. The name of the logical replication slot that’s configured with the pgoutput plugin.
publication: String
Required. The name of the publication that includes the set of all tables that are defined in the stream’s include_objects.
max_concurrent_backfill_tasks: i32
Maximum number of concurrent backfill tasks. The number should be non negative. If not set (or set to 0), the system’s default value will be used.
Implementations§
Source§impl PostgresqlSourceConfig
impl PostgresqlSourceConfig
pub fn new() -> Self
Sourcepub fn set_include_objects<T>(self, v: T) -> Selfwhere
T: Into<PostgresqlRdbms>,
pub fn set_include_objects<T>(self, v: T) -> Selfwhere
T: Into<PostgresqlRdbms>,
Sets the value of include_objects.
Sourcepub fn set_or_clear_include_objects<T>(self, v: Option<T>) -> Selfwhere
T: Into<PostgresqlRdbms>,
pub fn set_or_clear_include_objects<T>(self, v: Option<T>) -> Selfwhere
T: Into<PostgresqlRdbms>,
Sets or clears the value of include_objects.
Sourcepub fn set_exclude_objects<T>(self, v: T) -> Selfwhere
T: Into<PostgresqlRdbms>,
pub fn set_exclude_objects<T>(self, v: T) -> Selfwhere
T: Into<PostgresqlRdbms>,
Sets the value of exclude_objects.
Sourcepub fn set_or_clear_exclude_objects<T>(self, v: Option<T>) -> Selfwhere
T: Into<PostgresqlRdbms>,
pub fn set_or_clear_exclude_objects<T>(self, v: Option<T>) -> Selfwhere
T: Into<PostgresqlRdbms>,
Sets or clears the value of exclude_objects.
Sourcepub fn set_replication_slot<T: Into<String>>(self, v: T) -> Self
pub fn set_replication_slot<T: Into<String>>(self, v: T) -> Self
Sets the value of replication_slot.
Sourcepub fn set_publication<T: Into<String>>(self, v: T) -> Self
pub fn set_publication<T: Into<String>>(self, v: T) -> Self
Sets the value of publication.
Sourcepub fn set_max_concurrent_backfill_tasks<T: Into<i32>>(self, v: T) -> Self
pub fn set_max_concurrent_backfill_tasks<T: Into<i32>>(self, v: T) -> Self
Sets the value of max_concurrent_backfill_tasks.
Trait Implementations§
Source§impl Clone for PostgresqlSourceConfig
impl Clone for PostgresqlSourceConfig
Source§fn clone(&self) -> PostgresqlSourceConfig
fn clone(&self) -> PostgresqlSourceConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more