node-sql-template-strings
node-sql-template-strings copied to clipboard
ES6 tagged template strings for prepared SQL statements 📋
Just ran into this: need to join array of condition parts with `and` separator: ```ts // I have this: const parts: SQLStatement[] = [ SQL`a = ${value1}`, SQL`b = ${value2}`,...
I'm trying to extend the class in my TS project, but the lack of constructor prevents me from constructing the child class. 
Adds an .appendAll() function that allows you to pass an array of statements or strings to append. You can also provide a custom delimiter to separate the statements/strings (defaults to...
The `append` method will modify the original sql in place. However, it's common that we need to define a common base sql (as const), and append different `WHERE` or `ORDER...
If I want to use `append` because I want to have a dynamic column name (e.g. `othercolumn1`, `othercolumn2`), it looks like this. ```js return sqlTemplateString` update thetable set thecolumn1 =...
This is relevant for MySQL and MariaDB that don't have a native boolean type. Not sure about Postgres
Are there any already existing plugin which makes possible syntax highlighting for vscode? Is it possible to convert the sublime one?
We are trying to use useBind() with a sequelize `IN` raw query going to MSSQL. This works great if `status` has one element. However, when there are multiple elements in...
`sqlite3` is not mentioned in the Works with list. Is there a plan for support?