Skip to content

Commit

Permalink
add note about specifying the postgres schema with the driver adapter… (
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolasburk authored Apr 26, 2024
1 parent d9a23bc commit db36978
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions content/200-orm/050-overview/500-databases/300-postgresql.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,18 @@ const prisma = new PrismaClient({ adapter })

Notice that this code requires the `DATABASE_URL` environment variable to be set to your PostgreSQL connection string. You can learn more about the connection string below.

### Notes

#### Specifying a PostgreSQL schema

You can specify the https://www.postgresql.org/docs/current/ddl-schemas.html by passing in the `schema` option when instantiating `PrismaPg`:

```ts
const adapter = new PrismaPg(pool, {
schema: 'myPostgresSchema'
})
```

## Connection details

### Connection URL
Expand Down

0 comments on commit db36978

Please sign in to comment.