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

    Interface DumpCursor

    Where a resumable export has got to.

    Plain JSON, since it travels to the client between invocations. The table is named, not indexed: an index into a list rebuilt from sqlite_master shifts when a table is created or dropped mid-export and would resume into the wrong table.

    interface DumpCursor {
        afterRowid?: number | null;
        emitted?: number;
        offset?: number | null;
        phase: "done" | "rows" | "ddl" | "later";
        shape?: string;
        table?: string | null;
    }
    Index
    afterRowid?: number | null

    Keyset position: the last rowid emitted for DumpCursor.table.

    Null means nothing emitted yet and is not 0: rowid 0 is a real row (Drupal's anonymous user).

    emitted?: number

    rows emitted from this table so far, so limitPerTable survives a resume

    offset?: number | null

    OFFSET position, used only for a WITHOUT ROWID table

    phase: "done" | "rows" | "ddl" | "later"
    shape?: string

    Fingerprint of the dump shape this cursor belongs to.

    Options arrive separately on every call, so resuming ?all=1 with defaults would splice two dumps; dumpChunk throws on a mismatch.

    table?: string | null

    the table being emitted, by name