Skip to content

Conversation

@smith558
Copy link

@smith558 smith558 commented Jan 25, 2026

Fixes outdated instructions to be in line with recent changes (https://www.prisma.io/docs/orm/more/upgrade-guides/upgrading-versions/upgrading-to-prisma-7#driver-adapters-and-client-instantiation).

Summary by CodeRabbit

  • Documentation
    • Updated ORM introduction documentation to demonstrate PostgreSQL adapter initialization and configuration patterns using environment-based connection strings.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 25, 2026

Walkthrough

This pull request updates Prisma documentation to demonstrate PrismaPg adapter usage in PrismaClient initialization. A data modeling example file is modified to show importing and instantiating the PrismaPg adapter, then passing it to PrismaClient configuration, replacing the default client initialization pattern.

Changes

Cohort / File(s) Summary
PostgreSQL Adapter Initialization Documentation
content/200-orm/050-overview/100-introduction/300-data-modeling.mdx
Adds PrismaPg adapter import and instantiation example, updates PrismaClient initialization to pass the adapter instance via { adapter } configuration, includes commented alternative showing require-based syntax

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~4 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'docs: Fix outdated instructions' is vague and generic. While it correctly identifies the PR as documentation, it lacks specificity about what instructions were outdated or what the fix entails. Consider revising to something more specific like 'docs: Update client initialization to use PrismaPg adapter' to clearly convey the primary change being documented.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant