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

Function transaction_with_reference

tests/transaction_tests.rs:50–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48
49#[sea_orm_macros::test]
50pub async fn transaction_with_reference() {
51 let ctx = TestContext::new("transaction_with_reference_test").await;
52 create_tables(&ctx.db).await.unwrap();
53
54 let name1 = "SeaSide Bakery";
55 let name2 = "Top Bakery";
56 let search_name = "Bakery";
57 ctx.db
58 .transaction(|txn| _transaction_with_reference(txn, name1, name2, search_name))
59 .await
60 .unwrap();
61
62 ctx.delete().await;
63}
64
65fn _transaction_with_reference<'a>(
66 txn: &'a DatabaseTransaction,

Callers

nothing calls this directly

Calls 6

unwrapMethod · 0.80
newFunction · 0.50
create_tablesFunction · 0.50
transactionMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected