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>,
}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.
Implementations§
Trait Implementations§
Source§impl Clone for MssqlSourceConfig
impl Clone for MssqlSourceConfig
Source§fn clone(&self) -> MssqlSourceConfig
fn clone(&self) -> MssqlSourceConfig
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 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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for MssqlSourceConfig
impl JsonSchema for MssqlSourceConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for MssqlSourceConfig
impl RefUnwindSafe for MssqlSourceConfig
impl Send for MssqlSourceConfig
impl Sync for MssqlSourceConfig
impl Unpin for MssqlSourceConfig
impl UnsafeUnpin for MssqlSourceConfig
impl UnwindSafe for MssqlSourceConfig
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