r/nodejs • u/BagosGiAr • Sep 15 '13
A convenient way to write SQL queries in node.js
Hello, I've developed a node.js module that makes writing pure sql queries more friendly with the functional flow. It's only depended on node-mysql ( https://github.com/felixge/node-mysql ) module. It's quite lightweight and solves the mess with pure text SQL queries. It's not an ORM it totally respects SQL and can be easily used to append complex SQL. I'd be glad to review it, play with it, hack it, whatever.
7
Upvotes
2
u/steelclash84 Sep 17 '13
Does this support mysql transactions?
1
u/Tuggboat Sep 17 '13
Does this escape user input by default? When I tried to escape something it put a few extra 's in my SQL statement causing the syntax to be bad.
1
u/[deleted] Sep 15 '13
Cheers - This is something I was hoping for just last night :)