Node.js SQL query builder supporting multiple dialects (MySQL, PostgreSQL, SQLite, MSSQL). Version 0.1.28 is the latest stable release. The package is primarily used internally by ORM2 and has been in maintenance mode for several years. It provides a programmatic API for constructing SQL CREATE, SELECT, INSERT, UPDATE, DELETE queries with dialect-specific escaping. Compared to alternatives like knex.js, sql-query has a smaller API surface and is tied to the ORM2 ecosystem.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This package is CommonJS only and does not support ESM imports.
Query() is a factory function, not a constructor. Calling with 'new' may work but is not documented.
The dialect is passed as a string, not an options object.
Demonstrates creating a SQL query builder for MySQL dialect, building a SELECT query with a WHERE clause.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.