Prisma driver adapter for the Porsager 'postgres' library, version 1.0.2. This adapter enables Prisma Client to use the porsager/postgres (sql) database driver instead of Prisma's default drivers. It is essential for environments like serverless, Edge, or when using the postgres library's features. Release cadence is low; it is a thin wrapper. Differentiators: specifically for the `postgres` npm package (not `pg`), TypeScript-first, minimal overhead.
npm install prisma-adapter-postgresNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes postgres client, wraps it with PrismaPostgres adapter, and uses PrismaClient to create a user.
Upgrade postgres to v3+.
Upgrade Prisma to >=5.4.0 and enable driverAdapters preview feature.
Use @prisma/adapter-pg if you need pg driver.
Run `npm install prisma-adapter-postgres postgres` and ensure import path is correct.
Use `import { PrismaPostgres } from 'prisma-adapter-postgres'` (curly braces).Ensure adapter is created correctly: `const adapter = new PrismaPostgres(sql)`.