pub enum MssqlReplication {
Full,
Incremental {
column: String,
initial_value: Value,
},
}Expand description
How the source replicates rows across runs.
Serializes as { type: full } or
{ type: incremental, column: "...", initial_value: ... }.
Variants§
Full
Every run fetches the full result set (default).
Incremental
Only rows whose column is strictly greater than the stored bookmark
(or initial_value on the first run) are emitted.
The bookmark is applied two ways: if the query contains the literal
token @bookmark, it is bound as a parameter so the server filters
(efficient); the source also filters client-side as a correctness
backstop. The new maximum of column is persisted on the final page.
Trait Implementations§
Source§impl Clone for MssqlReplication
impl Clone for MssqlReplication
Source§fn clone(&self) -> MssqlReplication
fn clone(&self) -> MssqlReplication
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 MssqlReplication
impl Debug for MssqlReplication
Source§impl Default for MssqlReplication
impl Default for MssqlReplication
Source§fn default() -> MssqlReplication
fn default() -> MssqlReplication
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MssqlReplication
impl<'de> Deserialize<'de> for MssqlReplication
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 MssqlReplication
impl JsonSchema for MssqlReplication
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 moreSource§impl PartialEq for MssqlReplication
impl PartialEq for MssqlReplication
Source§fn eq(&self, other: &MssqlReplication) -> bool
fn eq(&self, other: &MssqlReplication) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MssqlReplication
impl Serialize for MssqlReplication
impl StructuralPartialEq for MssqlReplication
Auto Trait Implementations§
impl Freeze for MssqlReplication
impl RefUnwindSafe for MssqlReplication
impl Send for MssqlReplication
impl Sync for MssqlReplication
impl Unpin for MssqlReplication
impl UnsafeUnpin for MssqlReplication
impl UnwindSafe for MssqlReplication
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