prisma-database-setup

Configure Prisma ORM with PostgreSQL, MySQL, SQLite, MongoDB, and other database providers.

1|2|Updated Aug 14, 2026
One-click install
npx skills add https://github.com/byEduarda/TrabalhoFinal-EJCM2026.2 --skill prisma-database-setup-byeduarda
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: prisma-database-setup
Source: https://github.com/byEduarda/TrabalhoFinal-EJCM2026.2/tree/main/back/src/.windsurf/skills/prisma-database-setup
Command: npx skills add https://github.com/byEduarda/TrabalhoFinal-EJCM2026.2 --skill prisma-database-setup-byeduarda

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Setting up Prisma with the correct database provider, connection string, driver adapter, and client generation involves many provider-specific details that are easy to get wrong, especially with the differences between Prisma 6 and Prisma 7 workflows. ## Core Features & Use Cases - Provider-Specific Guides: Step-by-step setup references for PostgreSQL, MySQL, SQLite, MongoDB, SQL Server, CockroachDB, and Prisma Postgres. - Driver Adapter Configuration: Correct adapter and driver pairings for each database, including edge/serverless options like Turso and Prisma Postgres serverless. - Version Guidance: Clear rules for keeping MongoDB projects on Prisma 6.x while SQL providers use the Prisma 7 adapter workflow. - Use Case: When initializing a new Node.js API with PostgreSQL, follow the reference to write the schema datasource block, configure prisma.config.ts, set DATABASE_URL, install @prisma/adapter-pg, and instantiate PrismaClient correctly. ## Quick Start Ask the AI to configure Prisma with PostgreSQL in your project, including the schema datasource, environment variable, driver adapter, and Prisma Client generation.

Frequently Asked Questions about prisma-database-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Prisma with PostgreSQL?▼

Set provider to "postgresql" in prisma/schema.prisma, define the datasource URL in prisma.config.ts using env('DATABASE_URL'), and add the connection string to .env. Then install @prisma/adapter-pg and pg, and instantiate PrismaClient with the PrismaPg adapter.

How to set up Prisma Client with a driver adapter?▼

Install prisma and @prisma/client, add a generator block with provider "prisma-client" and an explicit output path, then run npx prisma generate. Instantiate PrismaClient by passing the database-specific adapter, such as PrismaPg for PostgreSQL.

Does Prisma 7 support MongoDB?▼

MongoDB projects should stay on the latest Prisma 6.x release with the prisma-client-js generator and the connection URL in schema.prisma. The Prisma 7 SQL driver adapter workflow does not apply to MongoDB, and no supported MongoDB upgrade path exists yet.

Which driver adapter should I use for MySQL or SQLite?▼

For MySQL or MariaDB, install @prisma/adapter-mariadb with the mariadb driver. For SQLite, use @prisma/adapter-better-sqlite3 with better-sqlite3, or @prisma/adapter-libsql with @libsql/client for Turso and edge environments.

Why does Prisma fail to connect to my database?▼

Common causes include wrong host or port, firewall rules, unencoded special characters in the password, or a missing schema parameter like ?schema=public in the PostgreSQL URL. Verify the database is running and the connection string format matches your provider.

What are the limitations of using SQLite with Prisma?▼

SQLite does not support enums or scalar list types like String[] directly, and write operations lock the database file, limiting concurrency. It suits local development and file-based apps but not high-concurrency production workloads.