pub enum ConflictMode {
Rollback,
Ignore,
Fail,
Abort,
Replace,
}
Expand description
Indicates the ON CONFLICT mode for the SQL statement currently being executed.
An UpdateVTab which has used VTabConnection::enable_constraints can examine this value to determine how to handle a conflict during a change.
For details about what each mode means, see the SQLite documentation.
Variants§
Rollback
Corresponds to ON CONFLICT ROLLBACK.
Ignore
Corresponds to ON CONFLICT IGNORE.
Fail
Corresponds to ON CONFLICT FAIL.
Abort
Corresponds to ON CONFLICT ABORT.
Replace
Corresponds to ON CONFLICT REPLACE.
Trait Implementations§
Source§impl Clone for ConflictMode
impl Clone for ConflictMode
Source§fn clone(&self) -> ConflictMode
fn clone(&self) -> ConflictMode
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConflictMode
impl Debug for ConflictMode
Source§impl PartialEq for ConflictMode
impl PartialEq for ConflictMode
impl Copy for ConflictMode
impl Eq for ConflictMode
impl StructuralPartialEq for ConflictMode
Auto Trait Implementations§
impl Freeze for ConflictMode
impl RefUnwindSafe for ConflictMode
impl Send for ConflictMode
impl Sync for ConflictMode
impl Unpin for ConflictMode
impl UnwindSafe for ConflictMode
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