pub struct DeleteOperation<E: QueryEngine, M: Model> { /* private fields */ }Expand description
Implementations§
Source§impl<E: QueryEngine, M: Model> DeleteOperation<E, M>
impl<E: QueryEngine, M: Model> DeleteOperation<E, M>
Sourcepub fn select(self, select: impl Into<Select>) -> Self
pub fn select(self, select: impl Into<Select>) -> Self
Select specific fields to return from deleted records.
Sourcepub fn build_sql(&self) -> (String, Vec<FilterValue>)
pub fn build_sql(&self) -> (String, Vec<FilterValue>)
Build the SQL query.
Sourcepub async fn exec(self) -> QueryResult<Vec<M>>where
M: Send + 'static,
pub async fn exec(self) -> QueryResult<Vec<M>>where
M: Send + 'static,
Execute the delete and return deleted records.
Sourcepub async fn exec_count(self) -> QueryResult<u64>
pub async fn exec_count(self) -> QueryResult<u64>
Execute the delete and return the count of deleted records.
Auto Trait Implementations§
impl<E, M> Freeze for DeleteOperation<E, M>where
E: Freeze,
impl<E, M> RefUnwindSafe for DeleteOperation<E, M>where
E: RefUnwindSafe,
M: RefUnwindSafe,
impl<E, M> Send for DeleteOperation<E, M>
impl<E, M> Sync for DeleteOperation<E, M>
impl<E, M> Unpin for DeleteOperation<E, M>
impl<E, M> UnwindSafe for DeleteOperation<E, M>where
E: UnwindSafe,
M: UnwindSafe,
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