OpenSource-Hub

prisma

prisma/prisma

支持多种数据库的类型安全 ORM。

项目简介

Prisma 是一款下一代 ORM,提供类型安全的查询构建器和自动生成的客户端。包含声明式迁移系统和数据浏览 GUI,支持 PostgreSQL、MySQL、SQL Server、SQLite、MongoDB 等数据库。

README 预览

\n\n\n  Prisma\n  \n  \n  \n  \n  \n  \n  Quickstart\n    •  \n  Website\n    •  \n  Docs\n    •  \n  Examples\n    •  \n  Blog\n    •  \n  Discord\n    •  \n  Twitter\n    •  \n  Youtube\n  \n  \n\n\n## What is Prisma?\n\nPrisma ORM is a **next-generation ORM** that consists of these tools:\n\n- [**Prisma Client**](https://www.prisma.io/docs/orm/prisma-client): Auto-generated and type-safe query builder for Node.js & TypeScript\n- [**Prisma Migrate**](https://www.prisma.io/docs/orm/prisma-migrate): Declarative data modeling & migration system\n- [**Prisma Studio**](https://github.com/prisma/studio): GUI to view and edit data in your database\n\nPrisma Client can be used in _any_ Node.js or TypeScript backend application (including serverless applications and microservices). This can be a [REST API](https://www.prisma.io/docs/concepts/overview/prisma-in-your-stack/rest), a [GraphQL API](https://www.prisma.io/docs/concepts/overview/prisma-in-your-stack/graphql), a gRPC API, or anything else that needs a database.\n\n**If you need a database to use with Prisma ORM, check out [Prisma Postgres](https://www.prisma.io/docs/getting-started/prisma-orm/quickstart/prisma-postgres?utm_source=github&utm_medium=prisma-readme) or if you are looking for our MCP Server, head [here](https://github.com/prisma/mcp).**\n\n## Getting started\n\n### Quickstart (5min)\n\nThe fastest way to get started with Prisma is by following the quickstart guides. You can choose either of two databases:\n\n- [Prisma Postgres](https://www.prisma.io/docs/getting-started/prisma-orm/quickstart/prisma-postgres)\n- [SQLite](https://www.prisma.io/docs/getting-started/prisma-orm/quickstart/sqlite)\n\n### Bring your own database\n\nIf you already have your own database, you can follow these guides:\n\n- [Add Prisma to an existing project](https://www.prisma.io/docs/getting