pub struct BoundUpsert {
pub target: Vec<u16>,
pub assignments: Vec<BoundAssignment>,
pub do_update: bool,
pub filter: Option<BoundExpr>,
}Expand description
A bound ON CONFLICT ... DO UPDATE clause.
Fields§
§target: Vec<u16>The conflict target columns, when written; empty means any constraint.
Sorted, because a conflict target names a set of columns and
ON CONFLICT(a,b) and ON CONFLICT(b,a) name the same one. Matching
them against an index’s columns is a set comparison, and sorting here
is what makes it one comparison rather than a search per column.
assignments: Vec<BoundAssignment>The assignments, or empty for DO NOTHING.
do_update: boolWhether the action is DO UPDATE.
filter: Option<BoundExpr>The WHERE on the DO UPDATE.
Trait Implementations§
Source§impl Clone for BoundUpsert
impl Clone for BoundUpsert
Source§impl Debug for BoundUpsert
impl Debug for BoundUpsert
Source§impl PartialEq for BoundUpsert
impl PartialEq for BoundUpsert
impl StructuralPartialEq for BoundUpsert
Auto Trait Implementations§
impl !Send for BoundUpsert
impl !Sync for BoundUpsert
impl Freeze for BoundUpsert
impl RefUnwindSafe for BoundUpsert
impl Unpin for BoundUpsert
impl UnsafeUnpin for BoundUpsert
impl UnwindSafe for BoundUpsert
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