(&mut self)
| 185 | |
| 186 | #[instrument(level = "trace")] |
| 187 | fn rollback(&mut self) { |
| 188 | match self.transaction.as_mut() { |
| 189 | Some(transaction) => { |
| 190 | if transaction.rollback(self.db_backend) { |
| 191 | if let Some(transaction) = self.transaction.take() { |
| 192 | self.transaction_log.push(transaction.into_transaction()); |
| 193 | } |
| 194 | } |
| 195 | } |
| 196 | None => panic!("There is no open transaction to rollback"), |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | fn drain_transaction_log(&mut self) -> Vec<Transaction> { |
| 201 | std::mem::take(&mut self.transaction_log) |
nothing calls this directly
no test coverage detected