Lightweight SQL query builder using tagged template literals for composing safe, parameterized queries. Current stable version is 1.0.3, released intermittently as a mature, stable library. It produces queries compatible with node-pg and mysql, supports nested subqueries, and has no external dependencies. Unlike extensive query builders like Knex.js, SQLiterally focuses on composability and safety without abstracting away SQL, giving developers full control.
npm install sqliterallyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage of sql and query functions to build parameterized SQL queries with tagged templates.
Always pass user input as template substitution values, not as part of the SQL string literal.
Clone the query before building if you need to reuse it, or use sql`...` for one-off queries.
Validate your SQL manually or use sql tagged literal for more control.
Use import syntax (ESM) for forward compatibility.
Run 'npm install sqliterally' and ensure import is from 'sqliterally' (not 'sqliterally/dist/sqliterally').
Correct import: import { sql } from 'sqliterally'Use import { query } from 'sqliterally'Update to latest version and check that you are using the query builder object, not the sql function.
No dependency data recorded yet.