Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to set a default schema for pg and neon adapters. #5722

Closed
SevInf opened this issue Mar 15, 2024 · 1 comment
Closed

Document how to set a default schema for pg and neon adapters. #5722

SevInf opened this issue Mar 15, 2024 · 1 comment
Assignees
Labels
docs Documentation creation, updates or corrections

Comments

@SevInf
Copy link
Contributor

SevInf commented Mar 15, 2024

When adapters are used, DB connection is configured even before prisma client is created. schema query parameter is non-standard and is not recognized by JS drivers. We have a different way of configuring default schema with adapters:

const adapter = new PrismaPg(pool, {
  schema: 'myDbSchema'
})

this applies only to pg, neon and pg-worker adapters. We need to document this.

@SevInf SevInf added the docs Documentation creation, updates or corrections label Mar 15, 2024
@nikolasburk
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation creation, updates or corrections
Projects
None yet
Development

No branches or pull requests

2 participants