scan method

Future<List<Row>> scan()

Full table scan — returns all rows.

Implementation

Future<List<Row>> scan() async {
  final result = <Row>[];
  for (final pid in await _allPageIds()) {
    result.addAll(await _readPageRows(pid));
  }
  return result;
}