listCollections method

  1. @override
Future<List<String>> listCollections()
override

Implementation

@override
Future<List<String>> listCollections() async {
  await ensureReady();
  final result = await _executor.execute(
    'SELECT collection FROM ${_names.collectionRegistry} ORDER BY collection',
  );
  return result
      .map((row) => row.toColumnMap()['collection'] as String)
      .toList(growable: false);
}