Pure SQL
JSON →Pure SQL (v1.1.0-beta5) is a lightweight Node.js library that enables writing SQL queries as pure SQL template files and using them directly in JavaScript. It parses SQL files containing named queries and compiles them into parameterized query strings with argument arrays. Supports PostgreSQL (pg) and other SQL dialects via configurable parameter placeholders. Key differentiators: minimal abstraction (no ORM-like layers), template-based approach similar to HugSQL, support for repeating arguments and table/column placeholders via :!table and :column** syntax. Currently in beta, with slow release cadence.
Resources
packagepure-sql ↗