A simple Postgres SQL query template library with TypeScript support. Version 1.0.4. Provides tagged template literals for building parameterized SQL queries safely. No dependencies. Lightweight and focused on Postgres. Differentiates by minimalism and explicit Postgres focus compared to generic SQL builders.
npm install sql-query-templateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage with dynamic table name via sql.ident and parameterized value, showing generated query text and values array.
Use import syntax instead of require.
Use named import: import { sql } from 'sql-query-template'.Use import type { SQLQuery } from 'sql-query-template'.Use import syntax if possible, or check that your project is configured for ESM (type: 'module' in package.json).
Use named import: import { sql } from 'sql-query-template'.Run npm install sql-query-template.
No dependency data recorded yet.