fix(docs): clarify postgresql adapter setup#7919
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
🍈 Lychee Link Check Report95 links: ✅ All links are working!Full Statistics Table
|
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Summary
.envbefore PostgreSQL adapter examples readDATABASE_URLDATABASE_URLis missing instead of passing an undefined value intopgpg.Poolsetup for users who want to manage the pool directlyRoot cause
The docs passed
process.env.DATABASE_URLdirectly toPrismaPg, which can produce confusingpgerrors when the environment variable is missing. The current adapter acceptspg.PoolConfig, so the docs should keep that setup but make the environment handling explicit and show the pool form as an advanced option.Validation
@prisma/adapter-pg@7.8.0types:PrismaPgacceptspg.Pool | pg.PoolConfig | stringpnpm exec cspell content/docs/orm/core-concepts/supported-databases/postgresql.mdx content/docs/orm/core-concepts/supported-databases/database-drivers.mdx content/docs/orm/v6/overview/databases/postgresql.mdx content/docs/orm/v6/overview/databases/database-drivers.mdx --show-contextgit diff --checkFixes #7464