Enum grafbase_sql_ast::ast::OnConflict
source · pub enum OnConflict<'a> {
DoNothing,
Update(Update<'a>, Vec<Column<'a>>),
}
Expand description
INSERT
conflict resolution strategies.
Variants§
DoNothing
When a row already exists, do nothing.
Update(Update<'a>, Vec<Column<'a>>)
ON CONFLICT UPDATE is supported for Postgres
Trait Implementations§
source§impl<'a> Clone for OnConflict<'a>
impl<'a> Clone for OnConflict<'a>
source§fn clone(&self) -> OnConflict<'a>
fn clone(&self) -> OnConflict<'a>
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 moresource§impl<'a> Debug for OnConflict<'a>
impl<'a> Debug for OnConflict<'a>
source§impl<'a> PartialEq<OnConflict<'a>> for OnConflict<'a>
impl<'a> PartialEq<OnConflict<'a>> for OnConflict<'a>
source§fn eq(&self, other: &OnConflict<'a>) -> bool
fn eq(&self, other: &OnConflict<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> StructuralPartialEq for OnConflict<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for OnConflict<'a>
impl<'a> Send for OnConflict<'a>
impl<'a> Sync for OnConflict<'a>
impl<'a> Unpin for OnConflict<'a>
impl<'a> UnwindSafe for OnConflict<'a>
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