-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Update HTTP web server examples #8354
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 HTTP web server examples #8354
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThis PR systematically updates six ORM examples (Express, Fastify, gRPC, Hapi, Koa, Nest) to replace Prisma Accelerate extension with the PostgreSQL adapter. Changes include: migrating from ts-node to tsx, adding prisma.config.ts files, updating Prisma generator configuration (provider, output, engineType), updating database URLs from prisma+postgres:// format, and bumping Prisma to 6.18.0 with PrismaPg adapter. Changes
Sequence Diagram(s)sequenceDiagram
participant App as Application
participant Client as PrismaClient
participant Adapter as PrismaPg Adapter
participant Pool as Connection Pool
participant DB as PostgreSQL
rect rgb(200, 220, 240)
Note over App,DB: Previous Flow (Accelerate)
App->>Client: new PrismaClient().$extends(withAccelerate())
Client->>App: extended client instance
App->>Client: query
Client->>DB: (via Accelerate)
end
rect rgb(220, 240, 200)
Note over App,DB: New Flow (Adapter-based)
App->>Adapter: new PrismaPg({connectionString})
Adapter->>Pool: create connection pool
App->>Client: new PrismaClient({adapter: pool})
Client->>App: client instance
App->>Client: query
Client->>Adapter: delegate via adapter
Adapter->>Pool: get connection
Pool->>DB: execute query
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Areas requiring extra attention:
Possibly related PRs
Pre-merge checks❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
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 |
* 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
Release Notes
New Features
Dependencies
Configuration