{"library":"sql-template-strings","type":"library","category":null,"description":"sql-template-strings (v2.2.2) is a mature, stable library that enables ES6 tagged template literals for building prepared SQL statements. It supports mysql, mysql2, pg (PostgreSQL), and Sequelize, automatically generating the correct placeholder syntax ($1, ?) and extracting values into arrays. Unlike raw template strings or manual concatenation, it prevents SQL injection by separating query text and values. Ships TypeScript definitions. Minimal API surface (SQL tag and append method). Last updated 2020; no active development but widely used and bug-free for its scope.","language":"javascript","status":"maintenance","version":"2.2.2","tags":["javascript","mysql","mysql2","postgres","pg","prepared","statements","placeholder","es6","typescript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install sql-template-strings","imports":["import SQL from 'sql-template-strings'","const SQL = require('sql-template-strings')","import { Statement } from 'sql-template-strings'"]},{"cmd":"yarn add sql-template-strings","imports":[]},{"cmd":"pnpm add sql-template-strings","imports":[]}],"homepage":"https://github.com/felixfbecker/node-sql-template-strings#readme","github":"https://github.com/felixfbecker/node-sql-template-strings","docs":null,"changelog":null,"pypi":null,"npm":"sql-template-strings","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}