compact method
Permanently removes tombstoned records whose wall-clock time is older
than horizon and returns the number of reclaimed records.
Defaults to throwing UnsupportedError. Override for engines that support in-place compaction.
Implementation
@override
Future<int> compact(String table, {required Duration horizon}) async =>
throw UnsupportedError(
'$runtimeType does not support in-place compaction; '
'use Collection.compact for a rebuild-based approach.',
);