node-sql-template-strings
node-sql-template-strings copied to clipboard
ES6 tagged template strings for prepared SQL statements 📋
I think nested query statements gives much better readability compared to appends: Let' say I have helpers ```js function authorFilter(author) { return SQL`author=${author}`; } function nameFilter(name) { return SQL`name=${name}`; }...
Fixes #30 and adds the ability to perform raw substitutions in the SQL call (c.f. calling append(string))
Useful for reusing a base query with multiple different appended statements: Example: ```javascript const baseQuery = SQL`SELECT * FROM books`; app.get("/", (req, res) => { const query = baseQuery.concat(SQL` WHERE...
How can I call `select * from stored_procedure('arg1', 'arg2', 'arg3')` with a dynamic number of args? So I would have an array of arguments like `args = ['arg1', 'arg2', 'arg3')`...
Hey - just wanted to drop a note & let you know I tried this out in a new project and it's awesome. I think it's probably one of the...
Been thinking about moving the project to TypeScript as I maintain a .d.ts file anyway and the code is so simple it's like maintaining the same file 2 times. Cannot...
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [eslint](https://eslint.org) ([source](https://togithub.com/eslint/eslint)) | [`^4.1.0` -> `^9.0.0`](https://renovatebot.com/diffs/npm/eslint/4.19.1/9.9.1) | [](https://docs.renovatebot.com/merge-confidence/) |...