The SQL statement to execute on each shard
Parameter values to bind to the SQL statement
Number of concurrent queries to run at once (default: 50)
Optionaloptions: ReadOptions
Read guarantee for this call. Each result carries its shard's bookmark on meta.bookmark, in config.shards order
Promise resolving to an array of results from each shard
Executes a query on all shards and returns all matching records from each shard.
This function is useful for scenarios where you need to retrieve all records matching a query across multiple shards, such as aggregating data or running cross-shard analytics.