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

Method delete

src/entity/model.rs:53–60  ·  view source on GitHub ↗

Delete a model

(self, db: &'a C)

Source from the content-addressed store, hash-verified

51
52 /// Delete a model
53 async fn delete<'a, A, C>(self, db: &'a C) -> Result<DeleteResult, DbErr>
54 where
55 Self: IntoActiveModel<A>,
56 C: ConnectionTrait,
57 A: ActiveModelTrait<Entity = Self::Entity> + ActiveModelBehavior + Send + 'a,
58 {
59 self.into_active_model().delete(db).await
60 }
61}
62
63/// A Trait for implementing a [QueryResult]

Callers

nothing calls this directly

Calls 1

into_active_modelMethod · 0.80

Tested by

no test coverage detected