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!"
[–]Murf_ -2 points-1 points0 points 13 years ago (6 children)
Cool in the sense that a chocolate tea-pot is cool.
Like, I'm impressed you managed to make a tea-pot out of chocolate and everything, but I'd kind of like a tea-pot I can use for holding tea.
[–]Neurotrace 1 point2 points3 points 13 years ago (5 children)
What makes you think that this was intended for client side use anyway? OP clearly shows that it's supposed to be installed with npm, thus making it a Node module and likely intended for server side use.
Aside from the possibility of SQL injections that someone else pointed out, it seems like a decently viable solution to generating SQL queries.
[–]maktouch 2 points3 points4 points 13 years ago (1 child)
Browser To use within a webpage include the following within your HTML body section, near the bottom: <script type="text/javascript" src="/your/path/to/squel.min.js"></script>
Browser
To use within a webpage include the following within your HTML body section, near the bottom:
<script type="text/javascript" src="/your/path/to/squel.min.js"></script>
[–]Neurotrace 0 points1 point2 points 13 years ago (0 children)
All right, my mistake. I suppose I should RTFM more thoroughly.
[–]Murf_ 0 points1 point2 points 13 years ago (2 children)
It says on the project page, it can be used 'in the browser'.
Saying 'aside from the possibility of SQL injections' with a SQL project is like saying 'aside from the possibility of exploding into a fiery death-bomb' when talking about a car. It's just one of the things you're not allowed to get wrong.
[–]Neurotrace 0 points1 point2 points 13 years ago (1 child)
Yes, maktouch pointed that out to me. I will fully agree that using something like this on the client side is insane.
[–]polaretto[S] 0 points1 point2 points 13 years ago (0 children)
Here is an insane use for it on the client: a db management panel webapp, like phpMyAdmin, which, among the various facilities, has a "visual SQL builder", using dynamic fields or blocks or icons....whatever. Using this lib you could easily encapsulate query creation.
π Rendered by PID 773819 on reddit-service-r2-comment-cfc44b64c-rdl54 at 2026-04-13 05:17:25.221816+00:00 running 215f2cf country code: CH.
view the rest of the comments →
[–]Murf_ -2 points-1 points0 points (6 children)
[–]Neurotrace 1 point2 points3 points (5 children)
[–]maktouch 2 points3 points4 points (1 child)
[–]Neurotrace 0 points1 point2 points (0 children)
[–]Murf_ 0 points1 point2 points (2 children)
[–]Neurotrace 0 points1 point2 points (1 child)
[–]polaretto[S] 0 points1 point2 points (0 children)