pub struct Delete<D, T>where
T: Table,{ /* private fields */ }Implementations§
Source§impl<D, T> Delete<D, T>where
T: Table,
impl<D, T> Delete<D, T>where
T: Table,
A correlated subquery over the table this statement writes — the
same EXISTS a SELECT builds with Select::correlated, against
the one-table scope a write statement has.
pub fn filter<C, Idxs>(self, cond: C) -> Delete<D, T>
Sourcepub fn filter_all(
self,
conds: impl IntoIterator<Item = Predicate<D, Cons<TableSlot<T, NotNull>, Nil>>>,
) -> Delete<D, T>
pub fn filter_all( self, conds: impl IntoIterator<Item = Predicate<D, Cons<TableSlot<T, NotNull>, Nil>>>, ) -> Delete<D, T>
AND-folds a runtime-length collection of discharged conditions, the
same way Select::filter_all does.
Trait Implementations§
Source§impl<D, T> Statement for Delete<D, T>
impl<D, T> Statement for Delete<D, T>
type Dialect = D
type Table = T
Source§fn to_sql(&self, _dialect: Self::Dialect) -> (String, Vec<Value>)
fn to_sql(&self, _dialect: Self::Dialect) -> (String, Vec<Value>)
The dialect is an argument for the reason
Select::to_sql’s is.Source§fn returning<Sel, Idx>(self, sel: Sel) -> Returning<Self, Sel>
fn returning<Sel, Idx>(self, sel: Sel) -> Returning<Self, Sel>
RETURNING, on whichever of the three this is — the clause is the
same clause. A distinct type rather than Self with a flag set: the
execution layer needs Sel’s concrete type to know what to decode a
returned row into, and an optional field would erase it.Auto Trait Implementations§
impl<D, T> Freeze for Delete<D, T>
impl<D, T> RefUnwindSafe for Delete<D, T>
impl<D, T> Send for Delete<D, T>
impl<D, T> Sync for Delete<D, T>
impl<D, T> Unpin for Delete<D, T>
impl<D, T> UnsafeUnpin for Delete<D, T>
impl<D, T> UnwindSafe for Delete<D, T>
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