Struct sea_orm::query::DeleteOne [−][src]
pub struct DeleteOne<A> where
A: ActiveModelTrait, { /* fields omitted */ }
Expand description
Perform a delete operation on a model
Implementations
pub fn exec<C>(
self,
db: &'a C
) -> impl Future<Output = Result<DeleteResult, DbErr>> + '_ where
C: ConnectionTrait<'a>,
pub fn exec<C>(
self,
db: &'a C
) -> impl Future<Output = Result<DeleteResult, DbErr>> + '_ where
C: ConnectionTrait<'a>,
Execute a DELETE operation on one ActiveModel
Trait Implementations
type QueryStatement = DeleteStatement
Add the query to perform a FILTER on
Add an AND WHERE expression Read more
Apply a where condition using the model’s primary key
Perform a check to determine table belongs to a Model through it’s name alias
type QueryStatement = DeleteStatement
type QueryStatement = DeleteStatement
Constrain the QueryStatement to QueryStatementBuilder trait
Get a mutable ref to the query builder
Get an immutable ref to the query builder
Take ownership of the query builder
Auto Trait Implementations
impl<A> !RefUnwindSafe for DeleteOne<A>
impl<A> !UnwindSafe for DeleteOne<A>
Blanket Implementations
Mutably borrows from an owned value. Read more