A minimal SQL query builder with TypeScript support. Version 2.0.1 provides a chainable API for generating parameterized SQL queries (SELECT, INSERT, UPDATE, DELETE). Lightweight, no dependencies, and targets both Node.js and React Native environments. Differentiated by its simplicity and lack of ORM features, suitable for small projects or when full control over SQL is needed.
npm install simple-sql-query-builderNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic SELECT query building with parameterized WHERE clause and chaining.
Update code to use .where('column = ?', [value]) instead of .and('column = ?', [value]) or .where().and().Replace .raw(sql) with .custom(sql).
Use .where('col = ?', [value]), not .where('col = ?', value).Sanitize identifiers manually or use a separate validation library.
Identifiers are not escaped; ensure you trust the source of table/column names.
Use import { select } from 'simple-sql-query-builder' or import { QueryBuilder } from 'simple-sql-query-builder' and call new QueryBuilder().select(...).Wrap parameters in an array: .where('col = ?', [value]).Use import for ESM: import { select } from 'simple-sql-query-builder'. For CJS, ensure compatible environment.No dependency data recorded yet.