pub struct MssqlSourceConfig {
pub connection: MssqlConnectionConfig,
pub query: String,
pub params: Vec<Value>,
pub max_connections: u32,
pub batch_size: usize,
pub statement_timeout_secs: u64,
pub replication: MssqlReplication,
pub state_key: Option<String>,
pub shard: Option<ShardConfig>,
}Expand description
Configuration for MssqlSource.
Fields§
§connection: MssqlConnectionConfigConnection + TLS settings (connection_url or connection_string).
query: StringSQL query to run. Use @P1, @P2, … for params, and
the literal @bookmark token to bind the incremental cursor server-side.
params: Vec<Value>Positional bind parameters for the query (@P1…@Pn). Defaults to empty.
max_connections: u32Maximum pooled connections. Defaults to 10.
batch_size: usizeRecords per emitted StreamPage. 0 emits the
whole result set as a single page. Defaults to DEFAULT_BATCH_SIZE.
statement_timeout_secs: u64Per-query timeout in seconds (0 disables). Defaults to 300.
replication: MssqlReplicationReplication mode. Defaults to MssqlReplication::Full.
state_key: Option<String>Explicit state-store key for the bookmark. When unset, a key is derived from the connection host and a query fingerprint.
shard: Option<ShardConfig>Optional primary-key range sharding for clustered (Mode B) execution.
When set, the source advertises itself as shardable: the cluster
coordinator splits the query’s key range into contiguous slices that
different workers process concurrently. Has no effect outside the
cluster coordinator (a plain faucet run streams the whole query), so
it is fully backward compatible. See ShardConfig.
Implementations§
Trait Implementations§
Source§impl Clone for MssqlSourceConfig
impl Clone for MssqlSourceConfig
Source§fn clone(&self) -> MssqlSourceConfig
fn clone(&self) -> MssqlSourceConfig
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 MssqlSourceConfig
impl Debug for MssqlSourceConfig
Source§impl<'de> Deserialize<'de> for MssqlSourceConfig
impl<'de> Deserialize<'de> for MssqlSourceConfig
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 MssqlSourceConfig
impl JsonSchema for MssqlSourceConfig
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 more