A Node.js SQL query builder library inspired by the Knex-style fluent API. Current stable version 1.5.5 (as of 2024). Released as needed; no fixed cadence. Differentiators: lightweight, zero dependencies, TypeScript support, and a simple builder pattern for constructing parameterized SQL queries with column escaping, joins, subqueries, and aggregations. Focuses on MySQL/MariaDB compatibility and avoids ORM features.
npm install coral-sqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates building a parameterized SELECT with raw SQL fragment, WHERE conditions, ordering, and limit using the fluent builder.
Use import syntax or dynamic import('coral-sql').Pass unescaped SQL via raw() helper.
Destructure the result: const [sql, bindings] = builder.toSQL();
Use multiple where calls or spread object keys.
Switch to import syntax or use dynamic import: const mod = await import('coral-sql');Run npm install coral-sql and ensure the import path is correct.
Use .toSQL() (v1.0+) or check documentation for version compatibility.
No dependency data recorded yet.