chore: generate
This commit is contained in:
@@ -113,13 +113,8 @@ const poll: (
|
|||||||
return yield* poll(client, queryExecutionId, attempt + 1)
|
return yield* poll(client, queryExecutionId, attempt + 1)
|
||||||
})
|
})
|
||||||
|
|
||||||
const results: (
|
const results: (client: AwsAthenaClient, queryExecutionId: string) => Effect.Effect<AthenaData[], AthenaQueryError> =
|
||||||
client: AwsAthenaClient,
|
Effect.fn("Athena.results")(function* (client: AwsAthenaClient, queryExecutionId: string) {
|
||||||
queryExecutionId: string,
|
|
||||||
) => Effect.Effect<AthenaData[], AthenaQueryError> = Effect.fn("Athena.results")(function* (
|
|
||||||
client: AwsAthenaClient,
|
|
||||||
queryExecutionId: string,
|
|
||||||
) {
|
|
||||||
// Accumulate pages iteratively; recursive spreads copied every previously
|
// Accumulate pages iteratively; recursive spreads copied every previously
|
||||||
// fetched row per page and blew up memory on large result sets.
|
// fetched row per page and blew up memory on large result sets.
|
||||||
const rows: AthenaData[] = []
|
const rows: AthenaData[] = []
|
||||||
@@ -143,7 +138,7 @@ const results: (
|
|||||||
if (!result.NextToken) return rows
|
if (!result.NextToken) return rows
|
||||||
nextToken = result.NextToken
|
nextToken = result.NextToken
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
function rowData(columns: string[], row: Row): AthenaData {
|
function rowData(columns: string[], row: Row): AthenaData {
|
||||||
return Object.fromEntries(
|
return Object.fromEntries(
|
||||||
|
|||||||
Reference in New Issue
Block a user