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
Run the following command to create tables in your database. This creates the `User` and `Post` tables that are defined in [`prisma/schema.prisma`](./prisma/schema.prisma):
@@ -584,24 +583,9 @@ Learn more about the different connection configurations in the [docs](https://w
584
583
585
584
<details><summary>Expand for an overview of example configurations with different databases</summary>
586
585
587
-
### Remove the Prisma Client extension
588
-
589
-
Before you proceed to use your own database, you should remove the Prisma client extension required for Prisma Postgres:
590
-
591
-
```terminal
592
-
npm uninstall @prisma/extension-accelerate
593
-
```
594
-
595
-
Remove the client extension from your `PrismaClient`:
596
-
597
-
```diff
598
-
- const prisma = new PrismaClient().$extends(withAccelerate())
599
-
+ const prisma = new PrismaClient()
600
-
```
601
-
602
586
### Your own PostgreSQL database
603
587
604
-
To use your own PostgreSQL database remove the `@prisma/extension-accelerate` package and remove the Prisma client extension.
588
+
To use your own PostgreSQL database, set `DATABASE_URL` to your connection string (e.g. `postgres://<username>:<password>@<host>:<port>/<database>`). Ensure your app initializes `PrismaClient` with the `@prisma/adapter-pg` driver adapter as shown above.
0 commit comments