Enum rorm_sql::on_conflict::OnConflict
source · 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 copy 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 more