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

    Type Alias PageMirrorSql

    Minimal SQL surface, so the drain is drivable over a stand-in.

    NON-GENERIC, matching FileSql: a generic exec<T> does not accept the Durable Object's own SqlStorage, because Record<string, SqlStorageValue> cannot satisfy an arbitrary T. The column shapes are asserted at the two read sites instead.

    type PageMirrorSql = {
        exec(
            query: string,
            ...bindings: unknown[],
        ): { toArray(): Record<string, unknown>[] };
    }
    Index
    • Parameters

      • query: string
      • ...bindings: unknown[]

      Returns { toArray(): Record<string, unknown>[] }