Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Write SQL in your JavaScript (github.com/lalitkapoor)
11 points by idefine on April 28, 2014 | hide | past | favorite | 3 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!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: