prisma-database-setup

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

Updated Sep 17, 2026
One-click install
npx skills add https://github.com/team-zerolatency/cfta --skill prisma-database-setup-team-zerolatency
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: prisma-database-setup
Source: https://github.com/team-zerolatency/cfta/tree/main/packages/database/.windsurf/skills/prisma-database-setup
Command: npx skills add https://github.com/team-zerolatency/cfta --skill prisma-database-setup-team-zerolatency

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, driver adapter, and client generation involves many version-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. - Prisma Client Setup: Generator block configuration, client generation, and single-instance instantiation patterns. - Use Case: When switching a project from SQLite to PostgreSQL, follow the provider reference to update the schema datasource, prisma.config.ts, environment variables, and install the correct driver adapter. ## Quick Start Ask the assistant to configure Prisma with PostgreSQL in this project, including the connection string and driver adapter setup.

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, and set DATABASE_URL in .env. Install @prisma/adapter-pg and pg, then instantiate PrismaClient with the PrismaPg adapter.

How do I set up Prisma with MongoDB?▼

Stay on the latest Prisma 6.x release and use provider "mongodb" with prisma-client-js, keeping the URL in schema.prisma. Do not apply the Prisma 7 SQL driver adapter workflow, and ensure your instance is a replica set for transactions.

Which Prisma driver adapter should I use for my database?▼

Use @prisma/adapter-pg for PostgreSQL and CockroachDB, @prisma/adapter-mariadb for MySQL, @prisma/adapter-better-sqlite3 for SQLite, @prisma/adapter-libsql for Turso, and @prisma/adapter-mssql for SQL Server. MongoDB uses no SQL adapter.

Does Prisma support SQLite enums and scalar lists?▼

SQLite does not support enums or scalar list types like String[] directly. Prisma polyfills enums or treats them as strings, and write operations lock the database file, limiting concurrency.

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 matches your provider's expected connection string structure.