Delete a model
(self, db: &'a C)
| 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] |
nothing calls this directly
no test coverage detected