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

Function main

tests/json_vec_tests.rs:10–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9#[sea_orm_macros::test]
10async fn main() -> Result<(), DbErr> {
11 let ctx = TestContext::new("json_vec_tests").await;
12 create_tables(&ctx.db).await?;
13 insert_json_vec(&ctx.db).await?;
14 insert_json_string_vec_derive(&ctx.db).await?;
15 insert_json_struct_vec_derive(&ctx.db).await?;
16
17 ctx.delete().await;
18
19 Ok(())
20}
21
22pub async fn insert_json_vec(db: &DatabaseConnection) -> Result<(), DbErr> {
23 let json_vec = json_vec::Model {

Callers

nothing calls this directly

Calls 6

insert_json_vecFunction · 0.85
newFunction · 0.50
create_tablesFunction · 0.50
deleteMethod · 0.45

Tested by

no test coverage detected