You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/200-orm/400-tools/06-prisma-studio.mdx
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,11 @@ metaDescription: 'Prisma Studio is a visual database editor.'
5
5
toc_max_heading_level: 2
6
6
---
7
7
8
-
Prisma Studio is a standalone visual database editor that lets you view and manipulate data directly in your browser. Unlike previous versions, Prisma Studio is now SQL-driven and works independently of Prisma ORM—you can use it with any database without needing a Prisma schema or project.
8
+
Prisma Studio is a standalone visual database editor that lets you view and manipulate data directly in your browser. Prisma 7 introduces a brand new standalone Studio, built from the ground up to work everywhere, with or without Prisma ORM.
9
9
10
-
Note that Prisma Studio is not open source but you can still create issues in the [`prisma/studio`](https://github.com/prisma/studio) repo.
10
+
Unlike previous versions, the new Prisma Studio is SQL-driven and does not rely on the Prisma schema file at all. Instead, it introspects your database directly to understand the schema structure. This means you can use it with any supported database without needing a Prisma schema or project.
11
+
12
+
Note that Prisma Studio is not open source but you can still create issues in the [`prisma/studio`](https://github.com/prisma/studio) repo. All "old Studio" issues are being closed as there won't be any further work on the previous version.
11
13
12
14
## Prerequisites
13
15
@@ -25,12 +27,17 @@ This approach works without any Prisma ORM setup—Studio will introspect your d
25
27
26
28
### Option 2: Use with a Prisma ORM project
27
29
28
-
If you have an existing Prisma project, Studio can read your configuration:
30
+
If you have an existing Prisma project, Studio can read your database connection configuration:
29
31
30
-
- A `prisma/schema.prisma` file with at least one model defined
31
-
- A `prisma.config.ts` configuration file
32
+
- A `prisma.config.ts` configuration file with database connection details
32
33
- A configured database connection
33
34
35
+
:::note
36
+
37
+
The new Studio does not read the `prisma/schema.prisma` file. It introspects your database directly to understand the schema structure.
38
+
39
+
:::
40
+
34
41
## Getting started
35
42
36
43
### Standalone usage (without Prisma ORM)
@@ -49,7 +56,7 @@ If you have a Prisma project, run the following command in your project director
49
56
npx prisma studio --config ./prisma.config.ts
50
57
```
51
58
52
-
Both commands start a local web server (default port `5555`) and open Prisma Studio in your browser. Studio connects to your database and introspects the schema to provide a visual interface for your data.
59
+
Both commands start a local web server (default port `5555`) and open Prisma Studio in your browser. Studio connects directly to your database and introspects the schema in real-time to provide a visual interface for your data—no Prisma schema file required.
Copy file name to clipboardExpand all lines: content/250-postgres/300-database/675-prisma-studio/index.mdx
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,13 @@ toc: true
10
10
11
11
Prisma Postgres comes with Prisma Studio built-in. You can use it in several ways:
12
12
13
-
- Run `npx prisma studio` to use Studio locally on your machine (also works with any other database via Prisma ORM)
13
+
- Run `npx prisma studio --url "postgresql://user:password@localhost:5432/dbname"` to use Studio locally on your machine (also works with any other database)
14
14
- Find the **Studio** tab in your project in the [Prisma Console](https://console.prisma.io) to use Studio online
15
15
- Install the [Prisma VS Code extension](https://marketplace.visualstudio.com/items?itemName=Prisma.prisma) to use Studio directly in VS Code
16
16
-[Embed Prisma Studio](/postgres/database/prisma-studio/embedding-studio) in your own app (e.g. as an admin dashboard)
17
17
18
18
:::note
19
-
If you want to **use Prisma Studio with another database than Prisma Postgres**, check the docs [here](/orm/tools/prisma-studio).
19
+
20
+
If you want to use Prisma Studio with another database than Prisma Postgres, check the docs [here](/orm/tools/prisma-studio).
0 commit comments