pub enum ConflictAction {
Nothing,
Replace(Vec<usize>),
Update {
columns: Vec<usize>,
plan: Box<Plan>,
},
}Expand description
What happens to a row whose key the table already holds.
Variants§
Nothing
The row is dropped.
Replace(Vec<usize>)
The held row takes the new row’s values in these columns.
Update
The held row takes the values the plan works out in these columns. The plan reads the held
rows as the table and the new rows as QualifiedName::excluded, one of each per row it
answers, and after a value for each column answers whether the row is updated at all.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ConflictAction
impl !UnwindSafe for ConflictAction
impl Freeze for ConflictAction
impl Send for ConflictAction
impl Sync for ConflictAction
impl Unpin for ConflictAction
impl UnsafeUnpin for ConflictAction
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