MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / exec

Method exec

src/executor/delete.rs:28–34  ·  view source on GitHub ↗

Execute a DELETE operation on one ActiveModel

(self, db: &'a C)

Source from the content-addressed store, hash-verified

26{
27 /// Execute a DELETE operation on one ActiveModel
28 pub fn exec<C>(self, db: &'a C) -> impl Future<Output = Result<DeleteResult, DbErr>> + 'a
29 where
30 C: ConnectionTrait,
31 {
32 // so that self is dropped before entering await
33 exec_delete_only(self.query, db)
34 }
35
36 /// Execute an delete operation and return the deleted model
37 ///

Callers 1

exec_delete_onlyFunction · 0.45

Calls 2

exec_delete_onlyFunction · 0.85
exec_deleteFunction · 0.85

Tested by

no test coverage detected