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

Function find_num_pages

examples/basic/src/select.rs:350–356  ·  view source on GitHub ↗
(db: &DbConn)

Source from the content-addressed store, hash-verified

348}
349
350async fn find_num_pages(db: &DbConn) -> Result<(), DbErr> {
351 println!("fruits number of page: ");
352 let num_pages = fruit::Entity::find().paginate(db, 3).num_pages().await?;
353 println!("{num_pages:?}");
354
355 Ok(())
356}

Callers 1

all_about_selectFunction · 0.85

Calls 2

num_pagesMethod · 0.80
paginateMethod · 0.80

Tested by

no test coverage detected