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

    Function countingSql

    • Wraps ctx.storage.sql so the host's own writes (the cfw_page insert, queue deletes, DDL) are tallied beside Drupal's; rows written binds the regeneration ceiling. Reads pass through uncounted: rowsWritten on a live cursor is not settled, and only a write returns no rows.

      Type Parameters

      Parameters

      • sql: T
      • getTally: () => WriteTally | undefined
      • OptionalonWrite: (rows: number) => void

      Returns T