squel-ts (v1.1.5) is a TypeScript and ESM fork of the abandoned squel SQL query builder library. It provides a flexible, zero-dependency query string builder for SQL databases, supporting SELECT, INSERT, UPDATE, DELETE, and engine-specific commands (MySQL etc.) via a fluent, chainable API. Released as a maintenance fork, it targets modern Node.js (>=12) and browsers, with built-in TypeScript definitions. Unlike Knex, it generates raw query strings without requiring a connection, making it lightweight for embedding. Release cadence is low; consider it in maintenance mode.
npm install squel-tsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Builds a SELECT query with field aliasing, filtering, ordering, and pagination. Shows both raw and parameterized output.
Use ESM imports: import { ... } from 'squel-ts' or dynamic import('squel-ts').Import and use remove({...}) instead of delete({...}).Pass `{ autoQuoteFieldNames: true }` to the query builder constructor, e.g., select({ autoQuoteFieldNames: true }).Upgrade to squel-ts and consult CHANGELOG for breaking changes. The API is largely compatible.
Ensure all objects in a bulk insert have the same property order, or use explicit field() calls.
Use 'import * as squel from "squel-ts"' or 'const squel = await import("squel-ts")'.Use 'import { select } from "squel-ts"'.Use 'import { remove } from "squel-ts"' or 'squel.remove()'.Set 'moduleResolution' to 'node16' or 'bundler' in tsconfig.json, or use '--moduleResolution node16'.
Check import: use 'select' from 'squel-ts', not 'Squel' or other internal class.
No dependency data recorded yet.