Revert "update cockroachdb, postgresql-supabase, prisma-postgres exam…#8384
Conversation
WalkthroughThis PR standardizes Prisma client setup across multiple database examples by replacing custom adapter-based configurations with the official Changes
Sequence DiagramsequenceDiagram
participant App as Application
participant OldClient as Old Setup<br/>(Adapter-based)
participant NewClient as New Setup<br/>(Extension-based)
rect rgb(200, 220, 255)
Note over OldClient: Previous Flow
App->>OldClient: import PrismaClient from generated
App->>OldClient: new PrismaClient({ adapter: PrismaPg })
OldClient->>OldClient: Initialize with adapter config
end
rect rgb(220, 255, 220)
Note over NewClient: Updated Flow
App->>NewClient: import PrismaClient from `@prisma/client`
App->>NewClient: new PrismaClient()
NewClient->>NewClient: Base client initialized
App->>NewClient: .$extends(withAccelerate())
NewClient->>NewClient: Extension applied
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Pre-merge checks❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (14)
💤 Files with no reviewable changes (2)
🧰 Additional context used🧠 Learnings (8)📓 Common learnings📚 Learning: 2025-08-22T12:12:24.602ZApplied to files:
📚 Learning: 2025-10-15T13:58:29.130ZApplied to files:
📚 Learning: 2025-10-15T13:58:59.096ZApplied to files:
📚 Learning: 2025-10-15T13:56:01.807ZApplied to files:
📚 Learning: 2025-10-27T13:18:46.546ZApplied to files:
📚 Learning: 2025-08-22T12:12:43.161ZApplied to files:
📚 Learning: 2025-10-27T13:18:46.546ZApplied to files:
🧬 Code graph analysis (5)databases/postgresql-supabase/prisma/seed.ts (1)
databases/prisma-postgres/src/caching.ts (1)
databases/cockroachdb/src/script.ts (1)
databases/postgresql-supabase/script.ts (1)
databases/prisma-postgres/src/queries.ts (1)
🪛 Biome (2.1.2)databases/cockroachdb/tests/prisma.test.ts[error] 2-3: Do not export from a test file. (lint/suspicious/noExportsInTest) ⏰ 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). (22)
🔇 Additional comments (15)
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. Comment |
…ples (#8374)"
This reverts commit 042d233.
Accidentally Merged
Summary by CodeRabbit