@earth-app/collegedb
    Preparing search index...

    Function firstAllShardsGlobal

    • Executes a query on all shards with global merge/sort/pagination and returns the first row after global processing.

      Type Parameters

      • T = Record<string, unknown>

        Type of the result record

      Parameters

      • sql: string

        SQL statement to execute on each shard

      • bindings: any[] = []

        Parameter values to bind to the SQL statement

      • options: Omit<GlobalAllShardsOptions<T>, "limit"> = {}

        Global merge/sort/pagination options (batchSize, sort, offset)

      Returns Promise<T | null>

      Promise resolving to the first globally-processed row, or null

      1.1.4