Perform a count on the paginated results
(self, db: &'db C)
| 220 | |
| 221 | /// Perform a count on the paginated results |
| 222 | async fn count(self, db: &'db C) -> Result<u64, DbErr> |
| 223 | where |
| 224 | Self: Send + Sized, |
| 225 | { |
| 226 | self.paginate(db, 1).num_items().await |
| 227 | } |
| 228 | |
| 229 | /// Check if any records exist |
| 230 | async fn exists(self, db: &'db C) -> Result<bool, DbErr> |