Skip to main content

UpdatePayload

Type Alias UpdatePayload 

Source
pub type UpdatePayload = Vec<(String, WriteOp)>;
Expand description

Flat column-operator payload for an update.

Each tuple is (column_name, WriteOp). Codegen emits this as the Data associated type for every per-model <Model>UpdateInput in phase 5a. Atomic operators (increment, decrement, multiply, divide) are preserved as distinct variants so the SQL builder can emit col = col + $n rather than col = $n.

Aliased Typeยง

pub struct UpdatePayload { /* private fields */ }