()
| 48 | |
| 49 | #[sea_orm_macros::test] |
| 50 | pub 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 | |
| 65 | fn _transaction_with_reference<'a>( |
| 66 | txn: &'a DatabaseTransaction, |
nothing calls this directly
no test coverage detected