-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Update misc examples with prisma.config.ts and adapter #8362
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
Update misc examples with prisma.config.ts and adapter #8362
Conversation
WalkthroughThis PR replaces the Prisma Accelerate extension-based approach with driver adapters across multiple example projects. Changes include updating dependencies, introducing new Changes
Sequence Diagram(s)sequenceDiagram
participant App as Application
participant PrismaClient as PrismaClient
participant Adapter as Driver Adapter<br/>(PrismaPg/<br/>PrismaBetterSQLite3)
participant DB as Database
rect rgb(200, 220, 240)
Note over App,DB: Old Flow (Extension-based)
App->>PrismaClient: new PrismaClient()
PrismaClient->>PrismaClient: $extends(withAccelerate())
PrismaClient->>DB: Execute query
end
rect rgb(220, 240, 200)
Note over App,DB: New Flow (Adapter-based)
App->>Adapter: new PrismaPg({connectionString})
App->>PrismaClient: new PrismaClient({adapter})
PrismaClient->>Adapter: Request connection
Adapter->>DB: Execute query
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 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 selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ 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). (19)
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 |
f8749c9
* Update all accelerate example (#8373) * Update misc examples (#8372) * Update misc examples with prisma.config.ts and adapter (#8362) * Update HTTP web server examples (#8354) * update all nextjs examples in `generator-prisma-client/` (#8342) * Update fullstack examples with prisma config and pg adapter (#8344) Co-authored-by: Nurul Sundarani <sundarani@prisma.io> * Update Nuxt & React Router examples (#8368) * Update optimize examples (#8375) * Update Bun & Deno examples (#8343) * Update GraphQL examples with prisma.config.ts and pg adapter (#8345) * update cockroachdb, postgresql-supabase, prisma-postgres examples (#8374) * remove engine classic and url from schema.prisma * update deployment * update readme * delete all lock files and update prisma version to 7.0.0 * update remaining examples * update d1 example * fix * update turso example * fix * update nuxt example * fix nextjs example * update all deps to 7.0.0 * fix --------- Co-authored-by: Nurul Sundarani <sundarani@prisma.io>
Summary by CodeRabbit
Refactor
Documentation
Chores