Skip to content

Commit

Permalink
Merge 58fd191 into 895b929
Browse files Browse the repository at this point in the history
  • Loading branch information
westlakem committed Mar 7, 2018
2 parents 895b929 + 58fd191 commit 5166cd0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions build/lib/request.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export interface AthenaRequestConfig {
baseRetryWait?: number;
retryWaitMax?: number;
retryCountMax?: number;
database?: string;
}
export declare class AthenaRequest {
private athena;
Expand Down
3 changes: 3 additions & 0 deletions build/lib/request.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/request.js.map

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

4 changes: 4 additions & 0 deletions src/lib/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export interface AthenaRequestConfig {
baseRetryWait?: number
retryWaitMax?: number
retryCountMax?: number
database?: string
}

const defaultBaseRetryWait = 200
Expand All @@ -27,6 +28,9 @@ export class AthenaRequest {
ResultConfiguration: {
OutputLocation: config.bucketUri,
},
QueryExecutionContext: {
Database: config.database || 'default',
},
}
const loopFunc = () => {
this.athena.startQueryExecution(params, (err: AWSError, data: any) => {
Expand Down

0 comments on commit 5166cd0

Please sign in to comment.