()
| 16 | |
| 17 | #[sea_orm_macros::test] |
| 18 | async 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 | |
| 35 | pub async fn insert_active_enum(db: &DatabaseConnection) -> Result<(), DbErr> { |
| 36 | use active_enum::*; |
nothing calls this directly
no test coverage detected