pub struct UpsertExecutor<E: EntityKind> { /* private fields */ }Expand description
UpsertExecutor
Implementations§
Source§impl<E: EntityKind> UpsertExecutor<E>where
E::PrimaryKey: PrimaryKeyFromKey,
impl<E: EntityKind> UpsertExecutor<E>where
E::PrimaryKey: PrimaryKeyFromKey,
Sourcepub fn by_unique_index(
&self,
index: UniqueIndexSpec,
entity: E,
) -> Result<E, Error>
pub fn by_unique_index( &self, index: UniqueIndexSpec, entity: E, ) -> Result<E, Error>
Upsert using a unique index specification.
Sourcepub fn by_unique_index_view(
&self,
index: UniqueIndexSpec,
view: E::ViewType,
) -> Result<E::ViewType, Error>
pub fn by_unique_index_view( &self, index: UniqueIndexSpec, view: E::ViewType, ) -> Result<E::ViewType, Error>
Upsert a view using a unique index specification.
Sourcepub fn by_unique_fields(&self, fields: &[&str], entity: E) -> Result<E, Error>
pub fn by_unique_fields(&self, fields: &[&str], entity: E) -> Result<E, Error>
Upsert using a unique index identified by its field list.
Trait Implementations§
Source§impl<E: Clone + EntityKind> Clone for UpsertExecutor<E>
impl<E: Clone + EntityKind> Clone for UpsertExecutor<E>
Source§fn clone(&self) -> UpsertExecutor<E>
fn clone(&self) -> UpsertExecutor<E>
Returns a duplicate 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 moreimpl<E: Copy + EntityKind> Copy for UpsertExecutor<E>
Auto Trait Implementations§
impl<E> Freeze for UpsertExecutor<E>
impl<E> RefUnwindSafe for UpsertExecutor<E>
impl<E> Send for UpsertExecutor<E>
impl<E> Sync for UpsertExecutor<E>
impl<E> Unpin for UpsertExecutor<E>
impl<E> UnwindSafe for UpsertExecutor<E>
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