pub struct Deleter { /* private fields */ }
Expand description
Handles DELETE operations in a ActiveModel using DeleteStatement
Implementations§
source§impl Deleter
impl Deleter
sourcepub fn new(query: DeleteStatement) -> Self
pub fn new(query: DeleteStatement) -> Self
Instantiate a new Deleter by passing it a DeleteStatement
sourcepub fn exec<C>(
self,
db: &C
) -> impl Future<Output = Result<DeleteResult, DbErr>> + '_where
C: ConnectionTrait,
pub fn exec<C>(
self,
db: &C
) -> impl Future<Output = Result<DeleteResult, DbErr>> + '_where
C: ConnectionTrait,
Execute a DELETE operation