ghdna / athena-express

Athena-Express can simplify executing SQL queries in Amazon Athena AND fetching cleaned-up JSON results in the same synchronous or asynchronous request - well suited for web applications.
https://www.npmjs.com/package/athena-express
MIT License
181 stars 70 forks source link

Allow an AWS region to be passed into the library #30

Open jonathankeebler opened 4 years ago

jonathankeebler commented 4 years ago

I ran into a problem where I was trying to make Athena queries against two AWS regions simultaneously. I was using aws.config.update to set my region each time, but that's a global config that would change in-between the Athena and S3 calls in athena-express.

To solve, I've added a new config parameter region that can be passed into the constructor. If it's not passed, the default behaviour will set the region.

coveralls commented 4 years ago

Pull Request Test Coverage Report for Build 99


Totals Coverage Status
Change from base Build 91: 0.0%
Covered Lines: 6
Relevant Lines: 6

💛 - Coveralls
ghost commented 3 years ago

Is there a chance to merge it into the main code as we need the same feature here