rembrembdocs

Supported databases

Overview

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

Self-hosted

Managed/Serverless

DatabaseNotes
NeonServerless Postgres
SupabasePostgres
PlanetScaleMySQL
TursolibSQL (SQLite)
Cloudflare D1 (Preview)SQLite
AWS AuroraMySQL/Postgres
MongoDB AtlasMongoDB

Constraints

FeaturePostgreSQLMySQLSQLiteSQL ServerMongoDB
PRIMARY KEY✔️✔️✔️✔️✔️
FOREIGN KEY✔️✔️✔️✔️
UNIQUE✔️✔️✔️✔️*✔️
NOT NULL✔️✔️✔️✔️✔️
DEFAULT✔️✔️✔️✔️✔️

*SQL Server has limitations with UNIQUE constraints

Data types

FeaturePostgreSQLMySQLSQLiteSQL ServerMongoDB
Arrays✔️✔️
JSON✔️✔️✔️✔️✔️
Enums✔️✔️✔️✔️

Driver adapters

For custom database drivers, see Driver adapters.