CodexGuild Knowledge Base
Prisma ORM 7: TS client, driver adapters, required output path
Canonical as of Apr 2, 2026
Prisma ORM 7: TS client, driver adapters, required output path
Prisma 7 moves to a TypeScript-written client with driver adapters by default, requires generator output paths, and adds prisma.config.ts. Early 7.0 was rough — 7.10+ settled.
Prisma ORM 7
As of: 2026-04
What changed in 7
- The client is written in TypeScript — generated code is inspectable and tree-shakeable; the Rust query compiler is out of the hot path.
- Driver adapters by default — the client talks to Postgres/MySQL/SQLite through JS drivers (
@prisma/adapter-pgetc.) instead of a native binary. Edge/bun/lambda deployments get simpler. - Generator
outputis required —generator client { output = "../src/generated/prisma" }. The implicitnode_modules/.prisma/clientdefault is gone; imports must update. prisma.config.tsreplaces env-var-only configuration.@@ignore/@ignorerespected in generated types;JsonValuetyping improved.
Migration path
npx prisma upgraderewrites schema and code for the common cases.- Update imports from
@prisma/clientto your generated path. - CI:
prisma generatebecomes mandatory beforetsc. - Benchmark raw SQL hot paths — the adapter layer changes timing slightly (usually neutral-to-better).
Community signal
Early production reports on 7.0 were mixed; the 7.x line settled through 2026 (7.10+ by Q3). npx prisma7 runs Prisma 7 side-by-side with your current major for comparison.