effect-db (v0.19.0) is a Postgres schema tooling library and CLI for the Effect ecosystem. It provides a migration-based workflow with push, pull, and migrate commands, and focuses on managing canonical table and enum declarations. Unlike Prisma or Kysely, it is fully integrated with Effect's typed functional programming paradigm, requiring @effect/cli, @effect/platform, @effect/sql, and effect as peer dependencies. It supports TypeScript 6.x and Bun >=1.3.5.
npm install effect-dbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a config file for effect-db. Run `bunx effectdb push` to apply schema changes to Postgres.
Use `bunx effectdb` or install globally with `bun install -g effect-db`.
Manage those objects outside the effectdb loop, e.g., with separate SQL scripts.
Upgrade TypeScript to version >=6.0.2.
Use `effectdb push --allow-destructive` after verifying backup.
Prefer restoring from backup after a destructive push.
Install: `bun add effect-db`
Use `bunx effectdb`.
Use `import { defineConfig } from 'effect-db'` (ESM).