library · inferred from evidence
@prisma/adapter-neon
A Prisma adapter designed for use with Neon's pooled connection strings.
- Prisma + Neon: pooled URL for the app, direct URL for the CLI
Prisma migrations run through the CLI need a direct connection; the app needs the pooled one. One DATABASE_URL for both breaks one side or the other.
- Prisma + Neon: use @prisma/adapter-neon, do not hand-roll the driver
Installing @neondatabase/serverless and ws alongside Prisma to wire up Neon manually is the outdated path. The official adapter bundles everything and is what the docs prescribe.
- Prisma "prepared statement does not exist" on the pooled string
Symptom: Prisma throws "prepared statement does not exist" under load. Cause: prepared statements do not survive PgBouncer transaction mode. Fix: use the Neon adapter or the direct string for that workload.