Expand description
Unified write-mode types + planner shared by every upsert-capable sink.
Structs§
- Delete
Marker - Identifies a record as a delete (vs. an upsert) by a marker field’s value.
e.g.
{ field: "__op", values: ["d", "delete"] }. - KeyTuple
- Ordered key column → value pairs, in
keydeclaration order. - Write
Plan - The partition of a page by write mode. Infallible to build — per-row
failures (missing/null key) land in
failedwith their original page index so the caller can route them to a DLQ or abort. - Write
Spec - Shared write-mode config, embedded in each upsert-capable sink config via
#[serde(flatten)]sowrite_mode/key/delete_markerappear at the sink-config top level.
Enums§
- Write
Mode - Write semantics for a sink. Serialized snake_case. Default
Append.
Functions§
- key_
to_ doc_ id - Render a key tuple into a single document id (Elasticsearch
_id). - key_
to_ filter - Build a Mongo/ES filter document
{ col: value, … }from a key tuple. - plan_
writes - Partition
pageinto upserts + deletes perspec. The single place all six sinks share.WriteMode::Appendshould never reach here (callers route append separately); if it does, every row is treated as an upsert.