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

Method count

src/executor/paginator.rs:222–227  ·  view source on GitHub ↗

Perform a count on the paginated results

(self, db: &'db C)

Source from the content-addressed store, hash-verified

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>

Callers 10

run_migrate_initFunction · 0.80
enum_iter_innerFunction · 0.80
crud_cakeFunction · 0.80
group_byFunction · 0.80
count_fruits_by_cakeFunction · 0.80
transformMethod · 0.80

Implementers 1

paginator.rssrc/executor/paginator.rs

Calls 2

num_itemsMethod · 0.80
paginateMethod · 0.80

Tested by 4

group_byFunction · 0.64