Skip to main content

支持的数据库

Prisma ORM 目前支持以下数据库。

¥Prisma ORM currently supports the following databases.

也可以看看:系统要求

¥See also: System requirements.

星号 (*) 表示版本号不相关;要么所有版本都支持,没有公开版本号等。

¥An asterisk (*) indicates that the version number is not relevant; either all versions are supported, there is not a public version number, etc.

自托管数据库

¥Self-hosted databases

数据库版本
CockroachDB21.2.4+
玛丽亚数据库10.0+
玛丽亚数据库11.0+
微软 SQL 服务器2017
微软 SQL 服务器2019
微软 SQL 服务器2022
MongoDB4.2+
MySQL5.6
MySQL5.7
MySQL8.0
MySQL8.4
PostgreSQL9.6
PostgreSQL10
PostgreSQL11
PostgreSQL12
PostgreSQL13
PostgreSQL14
PostgreSQL15
PostgreSQL16
PostgreSQL17
SQLite*

请注意,每个 Prisma ORM 版本都附带 SQLite 的固定版本。

¥Note that a fixed version of SQLite is shipped with every Prisma ORM release.

托管数据库

¥Managed databases

数据库版本
AWS 极光*
AWS Aurora 无服务器 1*
Azure SQL*
CockroachDB 即服务*
MongoDB 阿特拉斯*
Neon 无服务器 Postgres*
PlanetScale*
Cloudflare D1(预览版)*
Aiven(MySQL 和 Postgres)*
¹ 这不包括对 Aurora Serverless 的数据 API 的支持。