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.
npm install sql-queryNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a SQL query builder for MySQL dialect, building a SELECT query with a WHERE clause.
Consider migrating to a maintained alternative like knex.js.
Avoid exposing query building to untrusted input or upgrade if patches become available.
Always pass an explicit dialect string.
Run `npm install sql-query` in your project directory.
Use `const sql = require('sql-query');` and then `sql.Query()`. Note that this package does not support `import` statements.Ensure proper chaining order: create select object, then call .from(), then .select(), etc.
No dependency data recorded yet.