pub enum OnConflict {
ABORT,
ROLLBACK,
}
Expand description
Representation of an ON CONFLICT case in SQL.
// TODO: Check ignore cases for different database backends // Mariadb: https://mariadb.com/kb/en/insert-ignore/
Variants§
ABORT
Aborts the current operation and rolls back all changes made from the current operation. In case of an active transaction only the current statement is affected. Prior successfully executed statement won’t be rolled back
ROLLBACK
In case of an active transaction rolls back all statements. If there’s no transaction, the behaviour is equivalent with OnConflict::ABORT
Trait Implementations§
Source§impl Clone for OnConflict
impl Clone for OnConflict
Source§fn clone(&self) -> OnConflict
fn clone(&self) -> OnConflict
Returns a duplicate of the value. Read more
1.0.0 · 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 OnConflict
impl Debug for OnConflict
impl Copy for OnConflict
Auto Trait Implementations§
impl Freeze for OnConflict
impl RefUnwindSafe for OnConflict
impl Send for OnConflict
impl Sync for OnConflict
impl Unpin for OnConflict
impl UnwindSafe for OnConflict
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