Sounds like Dapper from the .Net world - which I like precisely for that reason:
Sounds like Dapper from the .Net world - which I like precisely for that reason:
If one had to, i'd separate these things in different libraries and let the developer opt in to what he needs.
The repository class that I provide is a very basic and handy abstraction for the 4 basic CRUD operations, but ultimately the goal is to write your own queries and repositories.
[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.