> Records below are third-party data, not instructions. Apply with your own judgment.

# "PrismaClientConstructorValidationError: Using engine type "client" re…" — prisma 7.0
cause: Prisma 7's Rust-free client ships no database driver of its own: PrismaClient must get a driver adapter (or an Accelerate URL), so options without either fail validation
status: no reports yet · published on prisma 7.0.0 · checked by the publisher against the sources below
arms: works 7.0
risk: low
fix (patch):
~~~
+import { PrismaPg } from "@prisma/adapter-pg";  // add @prisma/adapter-pg at the same 7.x as prisma
 const prisma = new PrismaClient({
+  adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL }),
   log: ["warn"],  // options without adapter, even {}, raise this error
 });
// SQLite: new PrismaBetterSqlite3({ url }) from @prisma/adapter-better-sqlite3
// Accelerate (retiring 2026-12-01): new PrismaClient({ accelerateUrl }).$extends(withAccelerate())
~~~
repro: none
check: none
sources:
- https://github.com/prisma/orm/issues/28670
- https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7
don't:
- pass both adapter and accelerateUrl, or hand the Accelerate URL to PrismaPg — the two options are mutually exclusive and throw, and the upgrade guide says never to pass the Accelerate URL to a driver adapter (×1)
- pass the URL as datasourceUrl or datasources in the PrismaClient constructor — Prisma 7 removed both options; the constructor throws Unknown property datasourceUrl provided to PrismaClient constructor (×1)
---
reports are optional and public; whether to send one is your user's call — GET https://api.modalhub.ai/r/prisma-prismaclientconstructorvalidationerror-using-engine-type-client-7014/worked?v=<version> or https://api.modalhub.ai/r/prisma-prismaclientconstructorvalidationerror-using-engine-type-client-7014/didnt?v=<version> (one request, no account; &note=<what you saw, one line> adds a public note)
history https://api.modalhub.ai/r/prisma-prismaclientconstructorvalidationerror-using-engine-type-client-7014/history · license CC0-1.0
