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

Return QueryExecutionId in query method #9

Closed jamesp26 closed 5 years ago

jamesp26 commented 5 years ago

Would be really useful if you added results.QueryExecutionId = queryExecutionId; to the query method. We are building a separate process to cache frequently run queries and want to use the executionId as the identifier. Is that possible?

ghdna commented 5 years ago

Yes, good suggestion. I've updated the package with this feature in v5.0.4. Just set getStats: true in the athenaExpressConfig constructor and you will get the QueryExecutionId in the response.