What does HackerNews think of sql-template-tag?
ES2015 tagged template string for preparing SQL statements, works with `pg` and `mysql`
Language:
TypeScript
You can avoid this entirely with JavaScript's tagged template literals. Here is an example library: https://github.com/blakeembrey/sql-template-tag
Have you considered a tagged template literal sql builder, such as https://github.com/blakeembrey/sql-template-tag ?
Keeps the SQL syntax so less to learn, but still offers parametrized queries.
Thankfully [0], it [1] already [2] exists. [3]
[0] https://github.com/gajus/slonik-sql-tag-raw
[1] https://github.com/felixfbecker/node-sql-template-strings
[2] https://github.com/blakeembrey/sql-template-tag
[3] https://www.npmjs.com/search?q=sql%20template
Edit: When I first read your comment, I thought you were saying that you wanted a separate library just to have the SQL template functionality.
I agree with what you're saying though.