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

Function main

tests/active_enum_tests.rs:18–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17#[sea_orm_macros::test]
18async fn main() -> Result<(), DbErr> {
19 let ctx = TestContext::new("active_enum_tests").await;
20 create_tables(&ctx.db).await?;
21 insert_active_enum(&ctx.db).await?;
22 insert_active_enum_child(&ctx.db).await?;
23
24 #[cfg(feature = "sqlx-postgres")]
25 insert_active_enum_vec(&ctx.db).await?;
26
27 find_related_active_enum(&ctx.db).await?;
28 find_linked_active_enum(&ctx.db).await?;
29
30 ctx.delete().await;
31
32 Ok(())
33}
34
35pub async fn insert_active_enum(db: &DatabaseConnection) -> Result<(), DbErr> {
36 use active_enum::*;

Callers

nothing calls this directly

Calls 8

insert_active_enumFunction · 0.85
insert_active_enum_childFunction · 0.85
insert_active_enum_vecFunction · 0.85
find_related_active_enumFunction · 0.85
find_linked_active_enumFunction · 0.85
newFunction · 0.50
create_tablesFunction · 0.50
deleteMethod · 0.45

Tested by

no test coverage detected