GetQueryResults
Source:
src/AWS/Athena/GetQueryResults.ts
Runtime binding for athena:GetQueryResults.
Reads one page of a completed query’s result set (raw rows + column
metadata) — use NextToken/MaxResults to paginate large results. For the
common run-and-decode flow, prefer the composite Query binding.
Provide the implementation with
Effect.provide(AWS.Athena.GetQueryResultsHttp).
Reading Results
Section titled “Reading Results”// init — bind the operation to the workgroupconst getQueryResults = yield* AWS.Athena.GetQueryResults(workGroup);
// runtimeconst page = yield* getQueryResults({ QueryExecutionId: id, MaxResults: 100 });console.log(page.ResultSet?.Rows?.length, page.NextToken);