Skip to main content
Prisma Documentation Docs
current

Search documentation

Type to search this documentation.

On this pageOverview

Overview (Prisma ORM v7)

Prisma ORM supports PostgreSQL, MySQL, SQLite, MongoDB, SQL Server, CockroachDB, and serverless databases

Database Version
PostgreSQL 9.6+
MySQL 5.6+
MariaDB 10.0+
SQL Server 2017+
SQLite All
MongoDB 4.2+
CockroachDB 21.2.4+
Database Notes
Neon Serverless Postgres
Supabase Postgres
PlanetScale MySQL
Turso libSQL (SQLite)
Cloudflare D1 (Preview) SQLite
AWS Aurora MySQL/Postgres
MongoDB Atlas MongoDB
Feature PostgreSQL MySQL SQLite SQL Server MongoDB
PRIMARY KEY ✔️ ✔️ ✔️ ✔️ ✔️
FOREIGN KEY ✔️ ✔️ ✔️ ✔️ —
UNIQUE ✔️ ✔️ ✔️ ✔️* ✔️
NOT NULL ✔️ ✔️ ✔️ ✔️ ✔️
DEFAULT ✔️ ✔️ ✔️ ✔️ ✔️

*SQL Server has limitations with UNIQUE constraints

Feature PostgreSQL MySQL SQLite SQL Server MongoDB
Arrays ✔️ — — — ✔️
JSON ✔️ ✔️ ✔️ ✔️ ✔️
Enums ✔️ ✔️ ✔️ — ✔️

For custom database drivers, see Driver adapters.

Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu