saveTrackedQueryKeys method

  1. @override
void saveTrackedQueryKeys(
  1. int trackedQueryId,
  2. Set<ChildKey> keys
)
override

Replaces the keys of trackedQueryId.

The reference engine throws a StateError for an untracked id while isDurable is true: a reference-engine check, not a requirement on engines.

Implementation

@override
void saveTrackedQueryKeys(int trackedQueryId, Set<ChildKey> keys) {
  _verifyInsideTransaction();
  _verifyTracked(trackedQueryId);
  _trackedQueryKeys[trackedQueryId] = Set<ChildKey>.of(keys);
}