epic-sql-query (v1.2.23) is a SQL query builder for Node.js and browser environments. It provides a fluent API to construct SELECT, INSERT, UPDATE, DELETE queries programmatically. Released with moderate cadence, it supports basic query building but may lack advanced features like subqueries or JOINs found in alternatives like knex.js. Note that this package has low download counts and minimal community involvement; consider evaluating its completeness before adopting in production.
npm install epic-sql-queryNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic CRUD operations: SELECT, INSERT, UPDATE, DELETE using fluent API and obtaining SQL with parameterized bindings.
Use knex.js or another advanced builder for complex queries.
Always chain `.toSQL()` at the end of a query pipeline.
Use template literals with placeholders instead: `db.raw('SELECT ?', [value])`.Update references to `.sql` and `.bindings` respectively.
Use named import: `import { EpicSQL } from 'epic-sql-query'`.Install: `npm install epic-sql-query`. For CommonJS, use dynamic import: `const epic = await import('epic-sql-query')`.Ensure you call .toSQL() on the final QueryBuilder, e.g., `const sql = db.select('table').where('id',1).toSQL();`Use `db.raw('SELECT ?', [value])` instead of `.raw()`.No dependency data recorded yet.