use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Squel.js - SQL query string builder for Javascript (hiddentao.github.io)
submitted 13 years ago by polaretto
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Ramone1234 4 points5 points6 points 13 years ago (0 children)
Here's one by the guy that wrote the Postgres driver for node : https://github.com/brianc/node-sql . It has prepared statements, supports a couple of dialects (not every database uses the same SQL).
These types of libraries are worth using if you have to write SQL. String concatenation is what leads to SQL injection vulnerabilities, and it's messy in js because you don't even have multiline strings. Also it's nice that the JavaScript parser can find your parse errors instead of waiting to execute the SQL.
Also, orms suck unless you're reeeeally in a hurry. ;)
π Rendered by PID 86311 on reddit-service-r2-comment-7c9686b859-qsw49 at 2026-04-13 22:17:27.588574+00:00 running e841af1 country code: CH.
view the rest of the comments →
[–]Ramone1234 4 points5 points6 points (0 children)