Hacker News new | ask | show | jobs
Write SQL in your JavaScript (github.com)
11 points by idefine 4433 days ago
2 comments

Where is the SQL being executed? Where is the database?
It doesn't execute unless you decide to execute it. It is building the sql string and giving that back to you. You can use any library that'll take sql to execute it against a connection.

I got some great feedback today - it seems that ES6 might have some good support for doing something like this. see the following:

https://github.com/lalitkapoor/js-sql/issues/2#issuecomment-...

http://www.nczonline.net/blog/2012/08/01/a-critical-review-o...

I would love to get some feedback. Thanks!