Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias DatasetChanges

    What changes returns: the net change since a cursor. A key appears in puts or in deletes, 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 is changes' job, and spool cannot see it. proof is the set proof of the whole collection at cursor, when the backend keeps one.

    type DatasetChanges = {
        cursor: number;
        deletes: readonly DatasetDelete[];
        proof?: SetProof;
        puts: readonly string[];
    }
    Index
    cursor: number

    the cursor these changes bring a device to

    deletes: readonly DatasetDelete[]

    keys of the rows to remove

    proof?: SetProof

    the collection's proof at cursor; without it spool reads the whole collection to make one

    puts: readonly string[]

    keys of the rows to send whole; spool reads them with read