Function applyChanges
-
applyChanges(
rows: ReadonlyMap<string, Plain>,
response: DatasetResponse,
digest?: string,
options?: ApplyOptions,
): Promise<Applied>Parameters
- rows: ReadonlyMap<string, Plain>
- response: DatasetResponse
Optionaldigest: string- options: ApplyOptions = {}
Returns Promise<Applied>
Applies a response to
rowsand returns the result, leavingrowsas it was. A reset response withoutafterstarts from no rows; a later seed page adds to what is held. Deletes apply before puts.digestis the digest ofrowswhen the caller holds it, which makes the work one row hash per replaced, deleted or added row; without it the digest ofrowsis computed first. Withoptions.hashesa replaced or deleted row's old hash is read, not computed, and the result carries the hashes after the response. Pure: no I/O, no clock.