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

Method commit

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

Source from the content-addressed store, hash-verified

171
172 #[instrument(level = "trace")]
173 fn commit(&mut self) {
174 match self.transaction.as_mut() {
175 Some(transaction) => {
176 if transaction.commit(self.db_backend) {
177 if let Some(transaction) = self.transaction.take() {
178 self.transaction_log.push(transaction.into_transaction());
179 }
180 }
181 }
182 None => panic!("There is no open transaction to commit"),
183 }
184 }
185
186 #[instrument(level = "trace")]
187 fn rollback(&mut self) {

Callers 1

Calls 3

takeMethod · 0.80
pushMethod · 0.80
into_transactionMethod · 0.80

Tested by 1