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

Athena is not a constructor #36

Closed sonupsp3 closed 3 years ago

sonupsp3 commented 4 years ago

Hi,

Getting Athena is not a construction error while using browserify. It looks like Athena is not included in the brower sdk. Could you please suggest how to resolve this issue?

ghdna commented 4 years ago

are you able to use it in a regular node.js application like the example in readme?

sonupsp3 commented 4 years ago

Yes this works fine in a regular node.js application

ghdna commented 4 years ago

Thats the primary usage of this package: As a standalone nodejs app or a lambda function. I haven't tested it outside of these two. if you know what is missing, feel free to submit a PR.

sonupsp3 commented 4 years ago

Sure, I'm still investigating. I'll submit a PR once I found the solution. Thanks