Skip to main content

Prisma 工作室

概述

¥Overview

Prisma Postgres 内置 Prisma Studio。你可以通过多种方式使用它:

¥Prisma Postgres comes with Prisma Studio built-in. You can use it in several ways:

  • 运行 npx prisma studio --url "postgresql://user:password@localhost:5432/dbname" 在你的本地计算机上使用 Studio(也适用于任何其他数据库)。

    ¥Run npx prisma studio --url "postgresql://user:password@localhost:5432/dbname" to use Studio locally on your machine (also works with any other database)

  • 中的项目中找到 Studio 选项卡,即可在线使用 Studio。

    ¥Find the Studio tab in your project in the to use Studio online

  • 安装 Prisma VS Code 扩展 以便直接在 VS Code 中使用 Studio

    ¥Install the Prisma VS Code extension to use Studio directly in VS Code

  • 你自己的应用中的 嵌入 Prisma Studio(例如,作为管理仪表板)

    ¥Embed Prisma Studio in your own app (e.g. as an admin dashboard)

注意

如果你想将 Prisma Studio 与 Prisma Postgres 以外的其他数据库一起使用,请查看文档 此处

¥If you want to use Prisma Studio with another database than Prisma Postgres, check the docs here.