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

Function find_first_page

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

Source from the content-addressed store, hash-verified

338}
339
340async fn find_first_page(db: &DbConn) -> Result<(), DbErr> {
341 println!("fruits first page: ");
342 let page = fruit::Entity::find().paginate(db, 3).fetch_page(0).await?;
343 for fruit in page {
344 println!("{fruit:?}");
345 }
346
347 Ok(())
348}
349
350async fn find_num_pages(db: &DbConn) -> Result<(), DbErr> {
351 println!("fruits number of page: ");

Callers 1

all_about_selectFunction · 0.85

Calls 2

fetch_pageMethod · 0.80
paginateMethod · 0.80

Tested by

no test coverage detected