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/050-overview/500-databases/880-supabase.mdx
+20-6Lines changed: 20 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,11 +18,11 @@ To learn more about Supabase, you can check out their architecture [here](https:
18
18
19
19
Many aspects of using Prisma ORM with Supabase are just like using Prisma ORM with any other relational database. You can still:
20
20
21
-
-model your database with the [Prisma Schema Language](/orm/prisma-schema)
22
-
-use Prisma ORM's existing [`postgresql` database connector](/orm/overview/databases/postgresql) in your schema, along with the [connection string Supabase provides you](https://supabase.com/docs/guides/database/connecting-to-postgres#connecting-to-external-libraries-and-tools)
23
-
-use[Introspection](/orm/prisma-schema/introspection) for existing projects if you already have a database schema in Supabase
24
-
-use[`db push`](/orm/prisma-migrate/workflows/prototyping-your-schema) to push changes in your schema to Supabase
25
-
-use[Prisma Client](/orm/prisma-client) in your application to talk to the database server at Supabase
21
+
-Model your database with the [Prisma Schema Language](/orm/prisma-schema)
22
+
-Use Prisma ORM's existing [`postgresql` database connector](/orm/overview/databases/postgresql) in your schema, along with the [connection string Supabase provides you](https://supabase.com/docs/guides/database/connecting-to-postgres#connecting-to-external-libraries-and-tools)
23
+
-Use[Introspection](/orm/prisma-schema/introspection) for existing projects if you already have a database schema in Supabase
24
+
-Use[`db push`](/orm/prisma-migrate/workflows/prototyping-your-schema) to push changes in your schema to Supabase
25
+
-Use[Prisma Client](/orm/prisma-client) in your application to talk to the database server at Supabase
26
26
27
27
## Specific considerations
28
28
@@ -33,7 +33,19 @@ If you'd like to use the [connection pooling feature](https://supabase.com/docs/
If you would like to use the Prisma CLI in order to perform other actions on your database (e.g. migrations) you will need to add a `DIRECT_URL` environment variable to use in the `datasource.directUrl` property so that the CLI can bypass Supavisor:
36
+
Supabase provides three types of connection strings for each database:
If you would like to use the Prisma CLI in order to perform other actions on your database (e.g. migrations), your setup depends on the connection string used:
45
+
46
+
- If your `DATABASE_URL` uses the Transaction Pooler (connection string 2), you must provide a `DIRECT_URL` with either the Direct Database (1) or Session Pooler (3) connection string in order for Prisma Migrate to work.
47
+
48
+
- If your `DATABASE_URL` already uses the Session Pooler (connection string 3), you do not need to provide a `DIRECT_URL`. Prisma Migrate will work without it.
Copy file name to clipboardExpand all lines: content/250-postgres/1200-more/800-known-limitations.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,6 @@ Prisma Postgres will be gradually rolled out in new regions.
19
19
20
20
Prisma Postgres _currently_ has a fixed connection limit of `10` that cannot be adjusted.
21
21
22
-
### Postgres extensions are not supported
22
+
### Limited Postgres extensions support
23
23
24
-
Prisma Postgres currently lacks support for Postgres extensions. This is a temporary limitation, and we plan to add support soon. Let us know which extensions you need by filling out [this form](https://pris.ly/i-want-extensions).
24
+
Prisma Postgres currently supports only the PostgreSQL extensions that come pre-installed with the standard PostgreSQL distribution. We are actively working on expanding support to include a broader range of community maintained extensions. Let us know which ones you'd like us to prioritize by filling out [this form](https://pris.ly/i-want-extensions).
0 commit comments