pub struct DeleteOne<A>where
A: ActiveModelTrait,{ /* private fields */ }
Expand description
Perform a delete operation on a model
Implementations§
source§impl<'a, A> DeleteOne<A>where
A: ActiveModelTrait + 'a,
impl<'a, A> DeleteOne<A>where
A: ActiveModelTrait + 'a,
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 one ActiveModel
Trait Implementations§
source§impl<A> QueryFilter for DeleteOne<A>where
A: ActiveModelTrait,
impl<A> QueryFilter for DeleteOne<A>where
A: ActiveModelTrait,
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<A> QueryTrait for DeleteOne<A>where
A: ActiveModelTrait,
impl<A> QueryTrait for DeleteOne<A>where
A: ActiveModelTrait,
§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