(&self)
| 58 | #[async_trait::async_trait] |
| 59 | impl TransactionTrait for SchemaManagerConnection<'_> { |
| 60 | async fn begin(&self) -> Result<DatabaseTransaction, DbErr> { |
| 61 | match self { |
| 62 | SchemaManagerConnection::Connection(conn) => conn.begin().await, |
| 63 | SchemaManagerConnection::Transaction(trans) => trans.begin().await, |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | async fn begin_with_config( |
| 68 | &self, |
no outgoing calls