pub enum ConflictAction {
Nothing,
Replace,
Update {
columns: Slice,
query: QueryRef,
},
}Expand description
What happens to a row whose key is already held.
Variants§
Nothing
DO NOTHING or OR IGNORE: the row is dropped.
Replace
OR REPLACE: the held row takes the new row’s values in the columns the statement wrote.
Update
DO UPDATE SET, held as SELECT values..., condition FROM table AS alias POSITIONAL JOIN table AS excluded, which the write runs with the held rows on the left and the new rows on
the right.
Trait Implementations§
Source§impl Clone for ConflictAction
impl Clone for ConflictAction
impl Copy for ConflictAction
Source§impl Debug for ConflictAction
impl Debug for ConflictAction
impl Eq for ConflictAction
Source§impl PartialEq for ConflictAction
impl PartialEq for ConflictAction
impl StructuralPartialEq for ConflictAction
Auto Trait Implementations§
impl Freeze for ConflictAction
impl RefUnwindSafe for ConflictAction
impl Send for ConflictAction
impl Sync for ConflictAction
impl Unpin for ConflictAction
impl UnsafeUnpin for ConflictAction
impl UnwindSafe for ConflictAction
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