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):
@@ -204,24 +203,9 @@ Learn more about the different connection configurations in the [docs](https://w
204
203
205
204
<details><summary>Expand for an overview of example configurations with different databases</summary>
206
205
207
-
### Remove the Prisma Client extension
208
-
209
-
Before you proceed to use your own database, you should remove the Prisma client extension required for Prisma Postgres:
210
-
211
-
```terminal
212
-
npm uninstall @prisma/extension-accelerate
213
-
```
214
-
215
-
Remove the client extension from your `PrismaClient` instance:
216
-
217
-
```diff
218
-
- const prisma = new PrismaClient().$extends(withAccelerate())
219
-
+ const prisma = new PrismaClient()
220
-
```
221
-
222
206
### Your own PostgreSQL database
223
207
224
-
To use your own PostgreSQL database remove the `@prisma/extension-accelerate` package and remove the Prisma client extension.
208
+
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.
This example uses Prisma Postgres, which requires the Prisma Accelerate extension. The extension is already included in the project dependencies and configured in [`lib/prisma.ts`](./lib/prisma.ts).
71
-
72
-
The Prisma Client is extended with the Accelerate extension to enable querying against your Prisma Postgres database:
70
+
This example uses Prisma Postgres with the `@prisma/adapter-pg` driver adapter configured in [`lib/prisma.ts`](./lib/prisma.ts):
0 commit comments