pub struct RedshiftSourceConfig {
pub connection: RedshiftConnection,
pub query: String,
pub params: Vec<Value>,
pub max_connections: u32,
pub batch_size: usize,
pub replication: RedshiftReplication,
pub state_key: Option<String>,
}Expand description
Configuration for the Amazon Redshift query source.
Fields§
§connection: RedshiftConnectionConnection block (host / port / database / user / credentials / tls), flattened to the config top level.
query: StringSQL query to execute. May contain ${field.path} parent-context tokens
(resolved to positional binds at runtime) and, for incremental
replication, a ${bookmark} token.
params: Vec<Value>Positional bind parameters for the query, applied in $1, $2, … order
before any context- or bookmark-derived values. Defaults to empty.
max_connections: u32Maximum number of connections in the pool. Defaults to 10.
batch_size: usizeRecords per emitted StreamPage. Rows are
drained from the sqlx cursor and yielded whenever the buffer reaches
this size. Defaults to DEFAULT_BATCH_SIZE.
batch_size = 0 is the “no batching” sentinel: the cursor is fully
drained and the entire result set is emitted in a single page.
replication: RedshiftReplicationReplication mode. Defaults to RedshiftReplication::Full.
state_key: Option<String>Explicit state-store key for the incremental bookmark. When unset, a key is derived from the host / database and a query fingerprint.
Implementations§
Source§impl RedshiftSourceConfig
impl RedshiftSourceConfig
Sourcepub fn validate(&self) -> Result<(), FaucetError>
pub fn validate(&self) -> Result<(), FaucetError>
Validate the config; returns a human-readable error if invalid.
Trait Implementations§
Source§impl Clone for RedshiftSourceConfig
impl Clone for RedshiftSourceConfig
Source§fn clone(&self) -> RedshiftSourceConfig
fn clone(&self) -> RedshiftSourceConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RedshiftSourceConfig
impl Debug for RedshiftSourceConfig
Source§impl<'de> Deserialize<'de> for RedshiftSourceConfig
impl<'de> Deserialize<'de> for RedshiftSourceConfig
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>,
Source§impl JsonSchema for RedshiftSourceConfig
impl JsonSchema for RedshiftSourceConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for RedshiftSourceConfig
impl RefUnwindSafe for RedshiftSourceConfig
impl Send for RedshiftSourceConfig
impl Sync for RedshiftSourceConfig
impl Unpin for RedshiftSourceConfig
impl UnsafeUnpin for RedshiftSourceConfig
impl UnwindSafe for RedshiftSourceConfig
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more