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

    Type Alias RestoreChunk

    one table's rows as read from the primary at one generation

    type RestoreChunk = {
        columns: readonly string[];
        ddl?: readonly string[];
        done?: boolean;
        expect?: readonly string[];
        first?: boolean;
        generation: number;
        hashSalt?: string;
        origin?: string;
        rows: readonly (readonly unknown[])[];
        schemaVersion: string;
        table: string;
    }
    Index
    columns: readonly string[]
    ddl?: readonly string[]

    The table's DDL and indexes, applied only when the replica lacks the table (the installer makes tables the pack lacks, so a pack-only lane fails with no such table).

    done?: boolean

    the last chunk of the whole copy

    expect?: readonly string[]

    on the first chunk: every table the copy delivers (done alone passes a copy cut short)

    first?: boolean

    the first chunk for this table; existing rows are cleared before it lands

    generation: number

    the primary's commit generation when these rows were read

    hashSalt?: string

    On the first chunk: the primary's hash salt (signs form tokens, login links and Crypt::hmacBase64 keys); lanes each minted their own and the primary refused their forms.

    origin?: string

    On the first chunk: the origin the primary renders against. Drupal derives the session cookie name from the host, and cfw_meta is lane-local, so a lane pinned its first caller's host (https://arm.invalid on a deployed 32-lane pool) and rendered every session anonymous. Authoritative site state: a lane inherits it, never mints.

    rows: readonly (readonly unknown[])[]
    schemaVersion: string

    the pack generation both sides must agree on

    table: string