pub enum OracleReplication {
Full,
Incremental {
column: String,
initial_value: Value,
},
}Expand description
How the source replicates rows across runs.
Serializes as { type: full } or
{ type: incremental, column: "UPDATED_AT", initial_value: ... }.
Variants§
Full
Every run fetches the full result set (default).
Incremental
Only rows not yet read, in column order, resuming from the stored
bookmark (or initial_value on the first run).
The source wraps the query as
SELECT * FROM (<query>) q WHERE q."COLUMN" >= :bookmark ORDER BY q."COLUMN"
and drops the rows it already emitted at the bookmark value, so rows
that share a cursor value (ties, late commits, DATE’s one-second
resolution) are never skipped. Every page carries a bookmark, so a
crash replays at most one page. Write :bookmark in the query (with
>=) to apply the cursor further inside it; a strict > is refused.
column names the key exactly as it appears in the output — Oracle
upper-cases unquoted names. Rows whose column is NULL are never read.
Trait Implementations§
Source§impl Clone for OracleReplication
impl Clone for OracleReplication
Source§impl Debug for OracleReplication
impl Debug for OracleReplication
Source§impl Default for OracleReplication
impl Default for OracleReplication
Source§impl<'de> Deserialize<'de> for OracleReplication
impl<'de> Deserialize<'de> for OracleReplication
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 OracleReplication
impl JsonSchema for OracleReplication
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