pub enum OnConflictAction {
Nothing,
Update {
assignments: Vec<(String, Expr)>,
where_: Option<Expr>,
},
}Expand description
v7.9.7 — action on conflict.
Variants§
Nothing
DO NOTHING — INSERT proceeds for non-conflicting rows,
silently skips conflicting ones.
Update
DO UPDATE SET col = expr [, …] [WHERE cond]. assignments
may reference EXCLUDED.col to read the incoming row’s
value (engine wires EXCLUDED as a virtual table).
Trait Implementations§
Source§impl Clone for OnConflictAction
impl Clone for OnConflictAction
Source§fn clone(&self) -> OnConflictAction
fn clone(&self) -> OnConflictAction
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 OnConflictAction
impl Debug for OnConflictAction
Source§impl PartialEq for OnConflictAction
impl PartialEq for OnConflictAction
Source§fn eq(&self, other: &OnConflictAction) -> bool
fn eq(&self, other: &OnConflictAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OnConflictAction
Auto Trait Implementations§
impl Freeze for OnConflictAction
impl RefUnwindSafe for OnConflictAction
impl Send for OnConflictAction
impl Sync for OnConflictAction
impl Unpin for OnConflictAction
impl UnsafeUnpin for OnConflictAction
impl UnwindSafe for OnConflictAction
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