Type Alias DatasetChanges
type DatasetChanges = {
cursor: number;
deletes: readonly DatasetDelete[];
proof?: SetProof;
puts: readonly string[];
}
cursor: number;
deletes: readonly DatasetDelete[];
proof?: SetProof;
puts: readonly string[];
}
Properties
cursor
cursor: number
the cursor these changes bring a device to
deletes
keys of the rows to remove
Optionalproof
the collection's proof at cursor; without it spool reads the whole collection to make one
puts
puts: readonly string[]
keys of the rows to send whole; spool reads them with read
What
changesreturns: the net change since a cursor. A key appears inputsor indeletes, never both. A row that entered the dataset's scope with its own version unchanged is a put; a row that left the scope is a delete. Deciding scope membership ischanges' job, and spool cannot see it.proofis the set proof of the whole collection atcursor, when the backend keeps one.