drupflare/worker - v1.0.4
    Preparing search index...

    Type Alias LogRecord

    one delivered generation; fingerprint is what the replica must hash to after applying

    type LogRecord = {
        fingerprint: string;
        generation: number;
        overflowed?: boolean;
        parent: number;
        schemaVersion: string;
        statements: readonly { params?: readonly unknown[]; sql: string }[];
    }
    Index
    fingerprint: string

    the primary's authoritative-state fingerprint at generation

    generation: number

    the generation this record produces

    overflowed?: boolean

    Set when the change was too large to log; the record carries no statements and a replica meeting it must restore (a truncated list would apply cleanly and be wrong).

    parent: number

    the generation it must be applied on top of

    schemaVersion: string

    the pack generation both sides must agree on

    statements: readonly { params?: readonly unknown[]; sql: string }[]

    the primary's writes, in order