liveFields method

  1. @override
Future<Map<String, Object?>> liveFields(
  1. String table,
  2. String prefix
)
override

Returns all live (non-tombstoned) records in table whose key starts with prefix, as a flat map of key → value.

Pass an empty prefix to scan the full table (used by Collection.all and Collection.all). Pass a document-id prefix (e.g. "$id\x1F") to narrow the read to a single document's field records — a disk-backed adapter can use this to avoid loading the whole table.

Implementation

@override
Future<Map<String, Object?>> liveFields(String table, String prefix) async {
  final raw = await _inner.liveFields(table, prefix);
  return {for (final e in raw.entries) e.key: _resolve(e.value)};
}