Skip to content

Commit

Permalink
Merge pull request #42 from KoteiIto/2.x
Browse files Browse the repository at this point in the history
Support CTAS Query
  • Loading branch information
KoteiIto committed Nov 8, 2018
2 parents 5f38655 + 811693e commit 7e0c98a
Show file tree
Hide file tree
Showing 18 changed files with 76 additions and 47 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ Set the number of cuncurrent execution of query max. It should be set `smaller t
| execRightCheckInterval | 100 | Optional. Timeout when number of maximum concurrent requests is exceeded |
| encryptionOption | undefined | Optional. Indicates the S3 encryption option used to encrypt the query results. Possible values include: `SSE_S3`, `SSE_KMS`, or `CSE_KMS` |
| encryptionKmsKey | undefined | Optional but required if `encryptionOption` is set to `SSE_KMS` or `CSE_KMS`. Value is the KMS key ARN or ID |
| skipFetchResult | false | Optional. If true, do not return the result of the query when the athena query is finished. This option is used for [CTAS](https://docs.aws.amazon.com/athena/latest/ug/ctas.html) |
| concurrentExecMax | 5 | DEPRECATED. Use `athena.setConcurrentExecMax()` instead |


#### `awsConfig` object properties
| Property | Default | Description |
|-----------|-----------|-------------|
Expand Down
2 changes: 1 addition & 1 deletion build/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions build/lib/client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface AthenaClientConfig extends AthenaRequestConfig {
queryTimeout?: number;
concurrentExecMax?: number;
execRightCheckInterval?: number;
skipFetchResult?: boolean;
}
export declare function setConcurrentExecMax(val: number): void;
export declare class AthenaClient {
Expand All @@ -24,8 +25,8 @@ export declare class AthenaClient {
constructor(request: AthenaRequest, config: AthenaClientConfig);
execute<T>(query: string): AthenaExecutionSelect<T>;
execute<T>(query: string, callback: (err?: Error, result?: AthenaExecutionResult<T>) => void): void;
private _execute;
private canStartQuery;
private startQuery;
private endQuery;
private _execute(query, csvTransform, config);
private canStartQuery();
private startQuery();
private endQuery();
}
26 changes: 16 additions & 10 deletions build/lib/client.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/lib/client.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7e0c98a

Please sign in to comment.