(self)
| 483 | |
| 484 | impl CommonPristineWriteTxn<'_> { |
| 485 | pub(super) fn commit(self) -> Result<(), RepositoryError> { |
| 486 | self.txn |
| 487 | .commit() |
| 488 | .map_err(|error| RepositoryError::Database(error.to_string())) |
| 489 | } |
| 490 | |
| 491 | /// Discard the transaction: no journal entry and no table mutation. |
| 492 | pub(super) fn abort(self) -> Result<(), RepositoryError> { |
no outgoing calls