Skip to content

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).

// init — bind the operation to the workgroup
const getQueryResults = yield* AWS.Athena.GetQueryResults(workGroup);
// runtime
const page = yield* getQueryResults({ QueryExecutionId: id, MaxResults: 100 });
console.log(page.ResultSet?.Rows?.length, page.NextToken);