sqltag

JSON →
library 1.1.0 ·javascript
verified Jun 5, 2026

SQL generation using ES6 tagged template strings. Provides safe parameterization and escaping for mysql, mysql2, and postgres drivers. Current version 1.1.0 is stable with no recent updates. Key differentiators: native template literal syntax, automatic value interpolation, built-in helpers for WHERE, SET, VALUES, raw/identifier escaping, and spread arrays. Lightweight with zero dependencies. Comparable to sql-template-strings but with a more concise API and fewer features.