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

Function cursor_tests

tests/cursor_tests.rs:11–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10#[sea_orm_macros::test]
11async fn cursor_tests() -> Result<(), DbErr> {
12 let ctx = TestContext::new("cursor_tests").await;
13 create_tables(&ctx.db).await?;
14 create_insert_default(&ctx.db).await?;
15 cursor_pagination(&ctx.db).await?;
16 bakery_chain_schema::create_tables(&ctx.db).await?;
17 create_baker_cake(&ctx.db).await?;
18 cursor_related_pagination(&ctx.db).await?;
19 ctx.delete().await;
20
21 Ok(())
22}
23
24pub async fn create_insert_default(db: &DatabaseConnection) -> Result<(), DbErr> {
25 use insert_default::*;

Callers

nothing calls this directly

Calls 7

cursor_paginationFunction · 0.85
create_baker_cakeFunction · 0.85
create_insert_defaultFunction · 0.70
newFunction · 0.50
create_tablesFunction · 0.50
deleteMethod · 0.45

Tested by

no test coverage detected