(&mut self)
| 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) { |