Skip to content

Conversation

@AmanVarshney01
Copy link
Member

@AmanVarshney01 AmanVarshney01 commented Dec 8, 2025

Summary by CodeRabbit

  • Documentation
    • Updated Prisma database driver configuration examples with corrected generator output paths and import statements to reflect proper setup procedures.

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

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

Dangerous URL check

No absolute URLs to prisma.io/docs found.
No local URLs found.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 8, 2025

Walkthrough

Modified documentation to update Prisma generator output path from ../src/generated/client to ../src/generated/prisma and adjust corresponding import path from ../generated/prisma/client to ./generated/prisma/client.

Changes

Cohort / File(s) Summary
Prisma Generator Configuration
content/200-orm/050-overview/500-databases/200-database-drivers.mdx
Updated generator output path in schema example to ../src/generated/prisma and corrected import statement to ./generated/prisma/client for consistency.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

This is a straightforward documentation update containing only path corrections in code examples. No logic changes or structural modifications are present—simply verifying that the generator output path and import statements are aligned and accurately reflect the intended generated client location.

Possibly related PRs

Pre-merge checks

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: fixing the generator output path in the database drivers documentation page.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 432af39 and dc8ac8a.

📒 Files selected for processing (1)
  • content/200-orm/050-overview/500-databases/200-database-drivers.mdx (1 hunks)
🧰 Additional context used
🧠 Learnings (6)
📓 Common learnings
Learnt from: aidankmcalister
Repo: prisma/docs PR: 7301
File: content/800-guides/410-cloudflare-workers.mdx:87-107
Timestamp: 2025-11-20T21:00:02.587Z
Learning: Do not suggest changes to `prisma.config.ts` files in the prisma/docs repository, as the code examples are intentional for documentation purposes.
Learnt from: aidankmcalister
Repo: prisma/docs PR: 7167
File: content/900-ai/prompts/astro.mdx:84-84
Timestamp: 2025-10-09T21:32:50.340Z
Learning: The `npx prisma init` command supports the following flags: `--db` (shorthand for `--datasource-provider prisma+postgres`), `--output` (specifies output location for generated client), `--generator-provider` (defines the generator provider), `--datasource-provider`, `--url`, `--preview-feature`, and `--with-model`. These are documented valid CLI options for Prisma init command.
📚 Learning: 2025-11-20T21:00:02.587Z
Learnt from: aidankmcalister
Repo: prisma/docs PR: 7301
File: content/800-guides/410-cloudflare-workers.mdx:87-107
Timestamp: 2025-11-20T21:00:02.587Z
Learning: Do not suggest changes to `prisma.config.ts` files in the prisma/docs repository, as the code examples are intentional for documentation purposes.

Applied to files:

  • content/200-orm/050-overview/500-databases/200-database-drivers.mdx
📚 Learning: 2025-10-08T16:23:00.388Z
Learnt from: aidankmcalister
Repo: prisma/docs PR: 7165
File: content/800-guides/550-test-guide.mdx:85-90
Timestamp: 2025-10-08T16:23:00.388Z
Learning: For .mdx files in the prisma/docs repository: All headings and titles should use sentence case (e.g., "Getting started with Prisma ORM", "Best practices for authentication"), not title case. Exception: Always preserve exact casing for product names including "Prisma Postgres", "Prisma", "Prisma ORM", and "Prisma Data Platform".

Applied to files:

  • content/200-orm/050-overview/500-databases/200-database-drivers.mdx
📚 Learning: 2025-10-09T21:32:50.340Z
Learnt from: aidankmcalister
Repo: prisma/docs PR: 7167
File: content/900-ai/prompts/astro.mdx:84-84
Timestamp: 2025-10-09T21:32:50.340Z
Learning: The `npx prisma init` command supports the following flags: `--db` (shorthand for `--datasource-provider prisma+postgres`), `--output` (specifies output location for generated client), `--generator-provider` (defines the generator provider), `--datasource-provider`, `--url`, `--preview-feature`, and `--with-model`. These are documented valid CLI options for Prisma init command.

Applied to files:

  • content/200-orm/050-overview/500-databases/200-database-drivers.mdx
📚 Learning: 2025-08-11T09:40:55.237Z
Learnt from: ankur-arch
Repo: prisma/docs PR: 7066
File: content/200-orm/200-prisma-client/700-debugging-and-troubleshooting/245-troubleshooting-binary-size-issues.mdx:8-22
Timestamp: 2025-08-11T09:40:55.237Z
Learning: When the queryCompiler preview feature is enabled in Prisma ORM (v6.7.0+), it does not require Rust engines for CLI tools like `prisma migrate` or `prisma db pull`. The previous understanding that CLI tools would still need Rust binaries even with queryCompiler enabled is incorrect.

Applied to files:

  • content/200-orm/050-overview/500-databases/200-database-drivers.mdx
📚 Learning: 2025-10-08T16:23:00.388Z
Learnt from: aidankmcalister
Repo: prisma/docs PR: 7165
File: content/800-guides/550-test-guide.mdx:85-90
Timestamp: 2025-10-08T16:23:00.388Z
Learning: For .mdx files in the prisma/docs repository: Only flag code snippets for (1) exposed secrets with real-looking values that should be placeholders (e.g., API keys, database passwords, AWS credentials), or (2) blatant syntax errors like missing parentheses, brackets, braces, or mismatched delimiters. Do not flag code quality issues, anti-patterns, security vulnerabilities, missing error handling, unused variables, or any other bad practices, as documentation intentionally shows problematic code.

Applied to files:

  • content/200-orm/050-overview/500-databases/200-database-drivers.mdx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Check links
  • GitHub Check: Check internal links
  • GitHub Check: Cloudflare Pages
🔇 Additional comments (1)
content/200-orm/050-overview/500-databases/200-database-drivers.mdx (1)

172-185: Path updates look correct and well-coordinated.

The output path change from ../src/generated/client to ../src/generated/prisma (line 175) pairs well with the import path update to ./generated/prisma/client (line 182). For a file in the src/ directory, this relative import correctly resolves to the generated client at src/generated/prisma/client. The changes maintain consistency between the schema configuration and application-level imports.


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.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

Redirect check

This PR probably requires the following redirects to be added to static/_redirects:

  • This PR does not change any pages in a way that would require a redirect.

@cloudflare-workers-and-pages
Copy link

Deploying docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: dc8ac8a
Status: ✅  Deploy successful!
Preview URL: https://c902beff.docs-51g.pages.dev
Branch Preview URL: https://dc-5659-unify-the-output-val.docs-51g.pages.dev

View logs

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

🍈 Lychee Link Check Report

Note: Links are cached for 5 minutes. Failed links (timeouts, rate limits) are retried in a second run with longer timeout.

📊 Results Overview

Status Count
🔍 Total 2268
✅ Successful 2006
⏳ Timeouts 0
🔀 Redirected 216
👻 Excluded 24
❓ Unknown 0
🚫 Errors 21
⛔ Unsupported 1

Errors per input

Errors in 100-getting-started/02-prisma-orm/100-quickstart/400-mysql.mdx

Errors in 100-getting-started/02-prisma-orm/200-add-to-existing-project/400-mysql.mdx

Errors in 200-orm/050-overview/500-databases/400-mysql.mdx

Errors in 200-orm/100-prisma-schema/20-data-model/20-relations/410-referential-actions/index.mdx

Errors in 200-orm/100-prisma-schema/20-data-model/20-relations/420-relation-mode.mdx

Errors in 200-orm/100-prisma-schema/20-data-model/30-indexes.mdx

Errors in 200-orm/100-prisma-schema/20-data-model/40-views.mdx

Errors in 200-orm/200-prisma-client/100-queries/050-filtering-and-sorting.mdx

Errors in 200-orm/200-prisma-client/100-queries/058-transactions.mdx

Errors in 200-orm/200-prisma-client/100-queries/060-full-text-search.mdx

Errors in 200-orm/200-prisma-client/100-queries/070-case-sensitivity.mdx

Errors in 200-orm/200-prisma-client/150-using-raw-sql/200-raw-queries.mdx

Errors in 200-orm/200-prisma-client/200-special-fields-and-types/100-working-with-json-fields.mdx

Errors in 200-orm/300-prisma-migrate/050-getting-started.mdx

Errors in 200-orm/300-prisma-migrate/300-workflows/90-development-and-production.mdx

Errors in 200-orm/500-reference/100-prisma-schema-reference.mdx

Errors in 200-orm/500-reference/350-database-features.mdx

@AmanVarshney01 AmanVarshney01 merged commit 704dc2d into main Dec 8, 2025
7 of 8 checks passed
@AmanVarshney01 AmanVarshney01 deleted the dc-5659-unify-the-output-value-of-generator-to-generatedprisma branch December 8, 2025 14:50
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.

2 participants