Typed SQL query builder for the Effect ecosystem (v0.19.0, active development). Designed to work with @effect/sql and @effect/experimental. Supports PostgreSQL, MySQL, SQLite via named entry points (effect-qb/postgres, effect-qb/mysql, effect-qb/sqlite). Distinct from other query builders by leveraging Effect's managed side-effects and typed errors. Requires Node >=22 or Bun >=1.3.5.
npm install effect-qbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows constructing a typed SQL query using QueryBuilder and executing it via @effect/sql with Effect.
Update to use QueryBuilder.build(sql)`...` pattern.
Upgrade Node.js to >=22.
Use lowercase import paths.
Use import { QueryBuilder } from 'effect-qb'.Migrate to @effect/sql-mysql package.
Ensure effect-qb is installed and Node.js version >=22 (subpath exports require modern Node).
Use `import { QueryBuilder } from 'effect-qb'`.