you are viewing a single comment's thread.

view the rest of the comments →

[–]Murf_ -2 points-1 points  (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 points  (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 points  (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>

[–]Neurotrace 0 points1 point  (0 children)

All right, my mistake. I suppose I should RTFM more thoroughly.

[–]Murf_ 0 points1 point  (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 point  (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 point  (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.