changeset method

  1. @override
Future<CrdtChangeset> changeset(
  1. String table, {
  2. String? sinceHlc,
  3. String? untilHlc,
})
override

Returns records in table in CrdtChangeset format.

When sinceHlc is non-null, only records modified after that HLC string are returned; when untilHlc is non-null, only records at or before it. Both bounds are parsed and compared as HLCs, never as raw strings. Pass neither (the default) for the full table, including tombstones — required for persistence and sync; the bounded form serves range reconciliation's leaf fetches.

Implementation

@override
Future<CrdtChangeset> changeset(
  String table, {
  String? sinceHlc,
  String? untilHlc,
}) =>
    // Raw states travel on the wire: the receiving side needs the full state
    // (tags, tombstones, sub-counters) to merge, not the resolved value.
    _inner.changeset(table, sinceHlc: sinceHlc, untilHlc: untilHlc);