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

Method begin

src/database/mock.rs:165–170  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

163
164 #[instrument(level = "trace")]
165 fn begin(&mut self) {
166 match self.transaction.as_mut() {
167 Some(transaction) => transaction.begin_nested(self.db_backend),
168 None => self.transaction = Some(OpenTransaction::init()),
169 }
170 }
171
172 #[instrument(level = "trace")]
173 fn commit(&mut self) {

Callers 1

Calls 2

initFunction · 0.85
begin_nestedMethod · 0.80

Tested by 1