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
179 stars 70 forks source link

Unable to get S3 location for result #71

Closed ghoastfalcon closed 2 years ago

ghoastfalcon commented 2 years ago

Hi,

First off, thank you for creating this library, it has made my job a lot easier :). I was wondering if there is support to pull the result S3 location out of the library. I am not finding an option to enable in the settings. But I did see where the functionality could be added. My use case is that I need to update a dynamo record with the result URL for a query so that we can track the queries being run in Athena via API calls, which leverage this library.

I wanted to see if this was something on your roadmap and if need be I could put a PR in with the update.

Thank you for your time,

-Barrett-

ghoastfalcon commented 2 years ago

Nevermind, I found it. Thanks!

ghdna commented 2 years ago

Glad it worked. For anyone else wondering, you can use skipResults or waitForResults. Check out the documentation for more info.