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

    Function allAllShardsGlobal

    • Executes a query on all shards and applies global merge/sort/pagination in-library.

      Unlike allAllShards, this helper returns a single merged QueryResult and can sort/paginate across the full combined result set after fanout.

      Type Parameters

      • T = Record<string, unknown>

        Type of the result records

      Parameters

      • sql: string

        SQL statement to execute on each shard

      • bindings: any[] = []

        Parameter values to bind to the SQL statement

      • options: GlobalAllShardsOptions<T> = {}

        Global merge/sort/pagination options

      Returns Promise<QueryResult<T>>

      Promise resolving to one globally-processed query result

      1.1.4