rollback method

Future<void> rollback()

Discard pending mutations on every backing file (heap, primary B+-tree, and any open secondary indexes). After this call the table reflects the on-disk state as of the last commit.

Implementation

Future<void> rollback() async {
  await _heap.rollback();
  await _index.rollback();
  for (final si in _secondary.values) {
    await si.btree.rollback();
  }
}