Get one Model from the SELECT query
(self, db: &C)
| 441 | |
| 442 | /// Get one Model from the SELECT query |
| 443 | pub async fn one<C>(self, db: &C) -> Result<Option<E::Model>, DbErr> |
| 444 | where |
| 445 | C: ConnectionTrait, |
| 446 | { |
| 447 | self.into_model().one(db).await |
| 448 | } |
| 449 | |
| 450 | /// Get all Models from the SELECT query |
| 451 | pub async fn all<C>(self, db: &C) -> Result<Vec<E::Model>, DbErr> |
no test coverage detected