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

Method begin

sea-orm-migration/src/connection.rs:60–65  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

58#[async_trait::async_trait]
59impl 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,

Callers 3

exec_with_connectionFunction · 0.45
upMethod · 0.45
downMethod · 0.45

Calls

no outgoing calls

Tested by 2

upMethod · 0.36
downMethod · 0.36