pub struct UpsertIndex<'bump> {
pub targets: &'bump [SortedColumn<'bump>],
pub where_clause: Option<Expr<'bump>>,
}Expand description
Upsert conflict targets
Fields§
§targets: &'bump [SortedColumn<'bump>]columns
where_clause: Option<Expr<'bump>>WHERE clause
Implementations§
Source§impl<'bump> UpsertIndex<'bump>
impl<'bump> UpsertIndex<'bump>
Sourcepub fn new(
targets: Vec<'bump, SortedColumn<'bump>>,
where_clause: Option<Expr<'bump>>,
) -> Result<Self, ParserError>
pub fn new( targets: Vec<'bump, SortedColumn<'bump>>, where_clause: Option<Expr<'bump>>, ) -> Result<Self, ParserError>
constructor
Trait Implementations§
Source§impl<'bump> Debug for UpsertIndex<'bump>
impl<'bump> Debug for UpsertIndex<'bump>
impl<'bump> Eq for UpsertIndex<'bump>
Source§impl<'bump> PartialEq for UpsertIndex<'bump>
impl<'bump> PartialEq for UpsertIndex<'bump>
Source§fn eq(&self, other: &UpsertIndex<'bump>) -> bool
fn eq(&self, other: &UpsertIndex<'bump>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'bump> StructuralPartialEq for UpsertIndex<'bump>
Auto Trait Implementations§
impl<'bump> !RefUnwindSafe for UpsertIndex<'bump>
impl<'bump> !Send for UpsertIndex<'bump>
impl<'bump> !Sync for UpsertIndex<'bump>
impl<'bump> !UnwindSafe for UpsertIndex<'bump>
impl<'bump> Freeze for UpsertIndex<'bump>
impl<'bump> Unpin for UpsertIndex<'bump>
impl<'bump> UnsafeUnpin for UpsertIndex<'bump>
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.