You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Athena-Query provide [async generator function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function*).
29
+
Athena-Query provide `query()` method as [async generator function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function*).
30
30
So we can use it with `for await () {}`,
31
31
32
32
```ts
@@ -43,6 +43,8 @@ for await (const item of athenaQuery.query("SELECT * FROM waf_logs;")) {
43
43
44
44
And if you break loop out, Athena-Query don't call unnecessary pages of `get-query-result` api.
45
45
46
+
If you want to reduce the size of the queried data rather than the retrieved data, you can use the [LIMIT clause](https://docs.aws.amazon.com/athena/latest/ug/select.html#select-parameters).
47
+
46
48
### Options
47
49
48
50
When you initialize AthenaQuery class, you can pass options to specify the query target.
0 commit comments