A template tag for writing parameterized SQL queries using ES2015 tagged template literals with Sequelize. Current stable version is 2.0.2, which works with Sequelize >=3.14.0 and >=4.0.0-0. This package simplifies building safe SQL queries by leveraging tagged template literals, automatically converting them into parameterized queries to prevent SQL injection. Compared to raw string concatenation or manual escaping, it provides a cleaner syntax and seamless integration with Sequelize's query interface. The release cadence is low; no updates since 2018.
npm install sequelize-sql-tagNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: create Sequelize instance, use sql tag with parameterized query and execute via sequelize.query().
Upgrade Sequelize to >=3.14.0 or >=4.0.0-0. If on older Sequelize, use sequelize-sql-tag@1.x and patch.
Use `sequelize.query(sql`...`)` not `sequelize.query(sql(...).query, { replacements: sql(...).values })`.Consider using Sequelize's built-in `replacements` or `bind` parameters directly.
Use Node >=6 for best compatibility with Sequelize.
Run `npm install sequelize-sql-tag` and ensure correct require/import.
Use `const sql = require('sequelize-sql-tag');`Upgrade Sequelize to >=3.14.0 or use sequelize-sql-tag v1.x.