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§
source§impl<'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§
source§impl<E> Clone for DeleteMany<E>where
E: EntityTrait + Clone,
impl<E> Clone for DeleteMany<E>where
E: EntityTrait + Clone,
source§fn clone(&self) -> DeleteMany<E>
fn clone(&self) -> DeleteMany<E>
Returns a copy 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 moresource§impl<E> Debug for DeleteMany<E>where
E: EntityTrait + Debug,
impl<E> Debug for DeleteMany<E>where
E: EntityTrait + Debug,
source§impl<E> QueryFilter for DeleteMany<E>where
E: EntityTrait,
impl<E> QueryFilter for DeleteMany<E>where
E: EntityTrait,
type QueryStatement = DeleteStatement
source§fn query(&mut self) -> &mut DeleteStatement
fn query(&mut self) -> &mut DeleteStatement
Add the query to perform a FILTER on
source§fn filter<F>(self, filter: F) -> Selfwhere
F: IntoCondition,
fn filter<F>(self, filter: F) -> Selfwhere
F: IntoCondition,
Add an AND WHERE expression Read more
source§fn belongs_to<M>(self, model: &M) -> Selfwhere
M: ModelTrait,
fn belongs_to<M>(self, model: &M) -> Selfwhere
M: ModelTrait,
Apply a where condition using the model’s primary key
source§fn belongs_to_tbl_alias<M>(self, model: &M, tbl_alias: &str) -> Selfwhere
M: ModelTrait,
fn belongs_to_tbl_alias<M>(self, model: &M, tbl_alias: &str) -> Selfwhere
M: ModelTrait,
Perform a check to determine table belongs to a Model through it’s name alias
source§impl<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
source§fn query(&mut self) -> &mut DeleteStatement
fn query(&mut self) -> &mut DeleteStatement
Get a mutable ref to the query builder
source§fn as_query(&self) -> &DeleteStatement
fn as_query(&self) -> &DeleteStatement
Get an immutable ref to the query builder
source§fn into_query(self) -> DeleteStatement
fn into_query(self) -> DeleteStatement
Take ownership of the query builder