prisma-database-setup

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

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/1t1sCooL/zazyvala-bot --skill prisma-database-setup-1t1scool
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-database-setup
Source: https://github.com/1t1sCooL/zazyvala-bot/tree/main/.agents/skills/prisma-database-setup
Command: npx skills add https://github.com/1t1sCooL/zazyvala-bot --skill prisma-database-setup-1t1scool

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Setting up Prisma ORM with the correct database provider, connection string format, driver adapter, and client generation workflow is error-prone, especially with the differences between Prisma 6 and Prisma 7. This Skill provides verified, provider-specific configuration guides so you avoid misconfigured schemas, wrong adapters, and connection failures. ## Core Features & Use Cases - Provider-Specific Guides: Step-by-step setup for PostgreSQL, MySQL, SQLite, MongoDB, SQL Server, CockroachDB, and Prisma Postgres, including schema blocks, prisma.config.ts, and .env connection strings. - Driver Adapter Setup: Correct adapter and driver pairings (e.g., @prisma/adapter-pg with pg, @prisma/adapter-mariadb with mariadb) with instantiation examples for Prisma Client. - Version-Aware Guidance: Clear rules for Prisma 7 SQL workflows versus keeping MongoDB projects on Prisma 6.x with prisma-client-js. - Use Case: You are migrating a NestJS app from SQLite to PostgreSQL. Use this Skill to update the datasource provider, install @prisma/adapter-pg, configure prisma.config.ts, and regenerate Prisma Client correctly. ## Quick Start Ask the AI to configure Prisma with PostgreSQL in your project, including the schema datasource, connection string, driver adapter, and 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 = "postgresql" in prisma/schema.prisma, define the datasource URL in prisma.config.ts, and set DATABASE_URL in .env using the postgresql://USER:PASSWORD@HOST:PORT/DATABASE?schema=SCHEMA format. Then install @prisma/adapter-pg and pg, and pass a PrismaPg adapter instance to PrismaClient.

How do I 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 with the adapter matching your database, such as PrismaPg for PostgreSQL or PrismaMariaDb for MySQL.

Can I use Prisma 7 with MongoDB?

MongoDB projects should stay on the latest Prisma 6.x release with prisma-client-js and the connection URL kept in schema.prisma. Prisma 7's SQL driver-adapter workflow does not provide a supported MongoDB upgrade path, so do not install SQL @prisma/adapter-* packages for MongoDB.

Which Prisma driver adapter should I use for my database?

Use @prisma/adapter-pg for PostgreSQL, CockroachDB, and Prisma Postgres; @prisma/adapter-mariadb for MySQL and MariaDB; @prisma/adapter-better-sqlite3 or @prisma/adapter-libsql for SQLite and Turso; and @prisma/adapter-mssql for SQL Server. Each adapter pairs with its corresponding JavaScript driver package.

Why does Prisma fail to connect to my database?

Common causes include incorrect host or port, firewall rules, unencoded special characters in passwords, or a missing schema parameter in the connection string. Verify the DATABASE_URL format for your provider and confirm the database server is running and reachable.

What are the limitations of using SQLite with Prisma?

SQLite does not support enums or scalar list types like String[], and write operations lock the database file, limiting concurrency. Connection strings use the file:PATH format, with paths resolved relative to the schema or prisma.config.ts location.