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

    Type Alias LogStore

    the durable surface an applier needs; a Map satisfies it, so the decisions are drivable

    type LogStore = {
        exec(sql: string, params: readonly unknown[]): void;
        read(key: string): string | null;
        txn(fn: () => void): void;
        write(key: string, value: string): void;
    }
    Index
    • Parameters

      • sql: string
      • params: readonly unknown[]

      Returns void

    • must be atomic: everything inside commits together or not at all

      Parameters

      • fn: () => void

      Returns void