Struct sea_orm::query::DeleteMany
source · [−]pub struct DeleteMany<E> where
E: EntityTrait, { /* private fields */ }
Expand description
Perform a delete operation on multiple models
Implementations
sourceimpl<'a, E> DeleteMany<E> where
E: EntityTrait,
impl<'a, E> DeleteMany<E> where
E: EntityTrait,
sourcepub fn exec<C>(
self,
db: &'a C
) -> impl Future<Output = Result<DeleteResult, DbErr>> + '_ where
C: ConnectionTrait,
pub fn exec<C>(
self,
db: &'a C
) -> impl Future<Output = Result<DeleteResult, DbErr>> + '_ where
C: ConnectionTrait,
Execute a DELETE operation on many ActiveModels
Trait Implementations
sourceimpl<E: Clone> Clone for DeleteMany<E> where
E: EntityTrait,
impl<E: Clone> Clone for DeleteMany<E> where
E: EntityTrait,
sourcefn clone(&self) -> DeleteMany<E>
fn clone(&self) -> DeleteMany<E>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<E: Debug> Debug for DeleteMany<E> where
E: EntityTrait,
impl<E: Debug> Debug for DeleteMany<E> where
E: EntityTrait,
sourceimpl<E> QueryFilter for DeleteMany<E> where
E: EntityTrait,
impl<E> QueryFilter for DeleteMany<E> where
E: EntityTrait,
type QueryStatement = DeleteStatement
sourcefn query(&mut self) -> &mut DeleteStatement
fn query(&mut self) -> &mut DeleteStatement
Add the query to perform a FILTER on
sourcefn filter<F>(self, filter: F) -> Self where
F: IntoCondition,
fn filter<F>(self, filter: F) -> Self where
F: IntoCondition,
Add an AND WHERE expression Read more
sourcefn belongs_to<M>(self, model: &M) -> Self where
M: ModelTrait,
fn belongs_to<M>(self, model: &M) -> Self where
M: ModelTrait,
Apply a where condition using the model’s primary key
sourcefn belongs_to_tbl_alias<M>(self, model: &M, tbl_alias: &str) -> Self where
M: ModelTrait,
fn belongs_to_tbl_alias<M>(self, model: &M, tbl_alias: &str) -> Self where
M: ModelTrait,
Perform a check to determine table belongs to a Model through it’s name alias
sourceimpl<E> QueryTrait for DeleteMany<E> where
E: EntityTrait,
impl<E> QueryTrait for DeleteMany<E> where
E: EntityTrait,
type QueryStatement = DeleteStatement
type QueryStatement = DeleteStatement
Constrain the QueryStatement to QueryStatementBuilder trait
sourcefn query(&mut self) -> &mut DeleteStatement
fn query(&mut self) -> &mut DeleteStatement
Get a mutable ref to the query builder
sourcefn as_query(&self) -> &DeleteStatement
fn as_query(&self) -> &DeleteStatement
Get an immutable ref to the query builder
sourcefn into_query(self) -> DeleteStatement
fn into_query(self) -> DeleteStatement
Take ownership of the query builder
Auto Trait Implementations
impl<E> !RefUnwindSafe for DeleteMany<E>
impl<E> Send for DeleteMany<E>
impl<E> Sync for DeleteMany<E>
impl<E> Unpin for DeleteMany<E> where
E: Unpin,
impl<E> !UnwindSafe for DeleteMany<E>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more