clear method

Future<void> clear()

Clear all rows (used by ROLLBACK).

Implementation

Future<void> clear() async {
  for (final tree in indexes.values) tree.clear();
  for (final pid in await _allPageIds()) {
    await _writePageRows(pid, []);
  }
  meta.rowCount = 0;
  _nextRowId    = 1;
}