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

    Type Alias FileSql

    The slice of ctx.storage.sql this module uses.

    Structural rather than SqlStorage, so the store is drivable from anything that can run a statement -- which is what lets the gate lane test it against a real Durable Object handle without the two type surfaces having to agree on members nothing here touches.

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

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

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