Closed ivan-kleshnin closed 5 years ago
I have published an article that answers your question.
https://dev.to/gajus/dynamically-generating-sql-queries-using-node-js-2c1g
Great, thanks for sharing, man! For some reason I missed the line where you show the basic interpolation example 😞
:tada: This issue has been resolved in version 18.11.2 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Hi @gajus
The docs state that:
Below
q2
is much easier to read and much more raw SQL-like thanq1
.1) Does
q1
approach have some benefits (besides dynamic column names)?2) If
q2
is better for static columns, then why not go further:or even
Pls. correct me if I'm wrong, but I thought being as lean and SQL-like as possible is the selling point of this library.
q1
looks like a generic query builder – not much of original SQL syntax is left there...