pub struct Upsert {
pub target: Vec<IndexedColumn>,
pub target_filter: Option<ExprId>,
pub assignments: Vec<(Vec<NameId>, ExprId)>,
pub do_update: bool,
pub filter: Option<ExprId>,
}Expand description
An UPSERT clause.
Fields§
§target: Vec<IndexedColumn>The conflict target columns, when written.
target_filter: Option<ExprId>The conflict target’s WHERE.
assignments: Vec<(Vec<NameId>, ExprId)>The DO UPDATE SET assignments, empty for DO NOTHING.
do_update: boolWhether the action is DO UPDATE.
filter: Option<ExprId>The DO UPDATE’s WHERE.
Trait Implementations§
impl Eq for Upsert
impl StructuralPartialEq for Upsert
Auto Trait Implementations§
impl Freeze for Upsert
impl RefUnwindSafe for Upsert
impl Send for Upsert
impl Sync for Upsert
impl Unpin for Upsert
impl UnsafeUnpin for Upsert
impl UnwindSafe for Upsert
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