OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add prisma/cursor-plugin --skill prisma-database-setup-prisma-postgres
Prisma Postgres Setup
npx skills add prisma/cursor-plugin --skill prisma-database-setup-prisma-postgres
Configure Prisma with Prisma Postgres (Managed).
Prisma Postgres is a serverless, managed PostgreSQL database optimized for Prisma.
You can provision a Prisma Postgres instance directly via the CLI:
This will:
.env with the connection string.The connection string starts with prisma+postgres://.
In prisma/schema.prisma:
In prisma.config.ts:
Prisma ORM 7 uses the query compiler by default, so you must use a driver adapter. For Prisma Postgres, use the Prisma Postgres serverless driver adapter.
Install adapter and driver:
Use a direct TCP connection string for the adapter (from the Prisma Console) and instantiate Prisma Client:
Since Prisma ORM 7 requires a driver adapter, use the Prisma Postgres adapter shown above when instantiating Prisma Client.