pub enum UpsertConstraint {
Any,
OwnKey,
Index(usize),
}Expand description
The constraint an ON CONFLICT clause names.
An index by position, not a set of columns. A table may hold a partial unique index and a plain one over the same columns, or two expression indexes over the same column, and a conflict target picks exactly one of them. Comparing column sets could not tell them apart, so the clause that matched was the first one that happened to share the columns.
Variants§
Any
No target was written, so the clause answers a conflict on any constraint.
OwnKey
The table’s own key: the rowid, or the primary key of a WITHOUT ROWID table.
Index(usize)
The unique index at this position in TableInfo::indexes.
Trait Implementations§
Source§impl Clone for UpsertConstraint
impl Clone for UpsertConstraint
impl Copy for UpsertConstraint
Source§impl Debug for UpsertConstraint
impl Debug for UpsertConstraint
impl Eq for UpsertConstraint
Source§impl PartialEq for UpsertConstraint
impl PartialEq for UpsertConstraint
impl StructuralPartialEq for UpsertConstraint
Auto Trait Implementations§
impl Freeze for UpsertConstraint
impl RefUnwindSafe for UpsertConstraint
impl Send for UpsertConstraint
impl Sync for UpsertConstraint
impl Unpin for UpsertConstraint
impl UnsafeUnpin for UpsertConstraint
impl UnwindSafe for UpsertConstraint
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