pub enum ClickHouseReplication {
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 substituted as an injection-safe SQL literal so
the server filters (efficient pushdown); 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 ClickHouseReplication
impl Clone for ClickHouseReplication
Source§fn clone(&self) -> ClickHouseReplication
fn clone(&self) -> ClickHouseReplication
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 ClickHouseReplication
impl Debug for ClickHouseReplication
Source§impl Default for ClickHouseReplication
impl Default for ClickHouseReplication
Source§fn default() -> ClickHouseReplication
fn default() -> ClickHouseReplication
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClickHouseReplication
impl<'de> Deserialize<'de> for ClickHouseReplication
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 ClickHouseReplication
impl JsonSchema for ClickHouseReplication
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 ClickHouseReplication
impl PartialEq for ClickHouseReplication
Source§impl Serialize for ClickHouseReplication
impl Serialize for ClickHouseReplication
impl StructuralPartialEq for ClickHouseReplication
Auto Trait Implementations§
impl Freeze for ClickHouseReplication
impl RefUnwindSafe for ClickHouseReplication
impl Send for ClickHouseReplication
impl Sync for ClickHouseReplication
impl Unpin for ClickHouseReplication
impl UnsafeUnpin for ClickHouseReplication
impl UnwindSafe for ClickHouseReplication
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