pub enum MergeAction {
Insert {
columns: Vec<String>,
values: Vec<Expr>,
},
Update {
assignments: Vec<(String, Expr)>,
},
Delete,
DoNothing,
}Variants§
Insert
INSERT (cols) VALUES (vals). SPG v7.17 requires the
explicit column list (the bare INSERT VALUES (vals)
shape lands later).
Update
UPDATE SET col = expr [, …] — applied to every matched
target row for the firing source row.
Delete
DELETE — drop every matched target row.
DoNothing
DO NOTHING — explicit no-op (the SQL standard accepts
the clause and SPG mirrors so a customer-side MERGE that
uses it for branch-control doesn’t error).
Trait Implementations§
Source§impl Clone for MergeAction
impl Clone for MergeAction
Source§fn clone(&self) -> MergeAction
fn clone(&self) -> MergeAction
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 MergeAction
impl Debug for MergeAction
Source§impl PartialEq for MergeAction
impl PartialEq for MergeAction
Source§fn eq(&self, other: &MergeAction) -> bool
fn eq(&self, other: &MergeAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MergeAction
Auto Trait Implementations§
impl Freeze for MergeAction
impl RefUnwindSafe for MergeAction
impl Send for MergeAction
impl Sync for MergeAction
impl Unpin for MergeAction
impl UnsafeUnpin for MergeAction
impl UnwindSafe for MergeAction
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