Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
prisma avatar

Prisma Database Setup Prisma Postgres

  • 14 installs
  • 8 repo stars
  • Updated February 9, 2026
  • prisma/cursor-plugin

prisma-database-setup-prisma-postgres configures managed Prisma Postgres.

About

The prisma-database-setup-prisma-postgres skill explains Prisma Postgres managed serverless PostgreSQL. prisma init --db logs into Prisma Data Platform, creates a project, and writes prisma+postgres:// DATABASE_URL to .env. Schema keeps postgresql provider with prisma-client generator output. prisma.config.ts loads url via env helper. Prisma ORM v7 requires @prisma/adapter-ppg and @prisma/ppg with PrismaPostgresAdapter using direct TCP PRISMA_DIRECT_TCP_URL from the console rather than pooled accelerate URLs for the adapter constructor. Highlights serverless scale-to-zero, integrated Accelerate caching, and Pulse real-time events as platform features. Provision managed Postgres via prisma init --db. Connection strings use prisma+postgres:// format. Requires PrismaPostgresAdapter with direct TCP URL. Schema uses postgresql provider with v7 generator. Documents Accelerate caching and Pulse features. Connected Prisma Client using PPG adapter and platform URL. User provisions or connects Prisma Postgres with adapters. Teams starting on Prisma Data Platform Postgres.

  • Provision managed Postgres via prisma init --db.
  • Connection strings use prisma+postgres:// format.
  • Requires PrismaPostgresAdapter with direct TCP URL.
  • Schema uses postgresql provider with v7 generator.
  • Documents Accelerate caching and Pulse features.

Prisma Database Setup Prisma Postgres by the numbers

  • 14 all-time installs (skills.sh)
  • Ranked #604 of 911 Databases skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
At a glance

prisma-database-setup-prisma-postgres capabilities & compatibility

Capabilities
cli provision workflow · driver adapter install steps · schema and config examples
Works with
postgres
Use cases
database · api development
From the docs

What prisma-database-setup-prisma-postgres says it does

prisma init --db
SKILL.md
PrismaPostgresAdapter
SKILL.md
npx skills add https://github.com/prisma/cursor-plugin --skill prisma-database-setup-prisma-postgres

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs14
repo stars8
Last updatedFebruary 9, 2026
Repositoryprisma/cursor-plugin

How do I set up Prisma Postgres in v7?

Configure Prisma with managed Prisma Postgres using CLI provision, config, and PPG driver adapter.

Who is it for?

Teams starting on Prisma Data Platform Postgres.

Skip if: Skip for self-hosted Postgres without Prisma cloud.

When should I use this skill?

User provisions or connects Prisma Postgres with adapters.

What you get

Connected Prisma Client using PPG adapter and platform URL.

Files

SKILL.mdMarkdownGitHub ↗

Prisma Postgres Setup

Configure Prisma with Prisma Postgres (Managed).

Overview

Prisma Postgres is a serverless, managed PostgreSQL database optimized for Prisma.

Setup via CLI

You can provision a Prisma Postgres instance directly via the CLI:

prisma init --db

This will: 1. Log you into Prisma Data Platform. 2. Create a new project and database instance. 3. Update your .env with the connection string.

Connection String

The connection string starts with prisma+postgres://.

DATABASE_URL="prisma+postgres://api_key@host.prisma-data.net/env_id"

1. Schema Configuration

In prisma/schema.prisma:

datasource db {
  provider = "postgresql" // Use postgresql provider
}

generator client {
  provider = "prisma-client"
  output   = "../generated"
}

2. Config Configuration

In prisma.config.ts:

import { defineConfig, env } from 'prisma/config'

export default defineConfig({
  schema: 'prisma/schema.prisma',
  datasource: {
    url: env('DATABASE_URL'),
  },
})

Driver Adapter (Prisma ORM 7 required)

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.

1. Install adapter and driver:

   npm install @prisma/adapter-ppg @prisma/ppg

2. Use a direct TCP connection string for the adapter (from the Prisma Console) and instantiate Prisma Client:

   import 'dotenv/config'
   import { PrismaClient } from '../generated/client'
   import { PrismaPostgresAdapter } from '@prisma/adapter-ppg'

   const prisma = new PrismaClient({
     adapter: new PrismaPostgresAdapter({
       connectionString: process.env.PRISMA_DIRECT_TCP_URL,
     }),
   })

Features

  • Serverless: Scales to zero.
  • Caching: Integrated query caching (Accelerate).
  • Real-time: Database events (Pulse).

Using with Prisma Client

Since Prisma ORM 7 requires a driver adapter, use the Prisma Postgres adapter shown above when instantiating Prisma Client.

Related skills

FAQ

What does prisma-database-setup-prisma-postgres do?

prisma-database-setup-prisma-postgres configures managed Prisma Postgres.

When should I use prisma-database-setup-prisma-postgres?

User provisions or connects Prisma Postgres with adapters.

Is this skill safe to install?

Review the Security Audits panel on this page before installing in production.

Databasesdatabases

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.