Commit 1c72e57
fix(webapp,database): address Devin review on the driver-adapter path
- Pass the datasource schema (?schema=) to PrismaPg as its {schema} option so
custom-schema installs keep talking to the right schema on the adapter (the
adapter does not honor ?schema= in the connection string).
- Set disposeExternalPool: true so $disconnect() closes the pg pool instead of
leaking sockets, matching the engine-driver path.
- Guard the two $metrics consumers (the /metrics route and the OTel batch
observable callback) so a client on a driver adapter degrades to empty metrics
instead of failing the scrape / rejecting the callback.
- isPrismaRetriableError checks the adapter acquire-timeout message independently
of the coded-error branch, so the pool-acquire retry still engages if the
timeout arrives wrapped as a coded error.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent f07ac7c commit 1c72e57
4 files changed
Lines changed: 24 additions & 5 deletions
File tree
- apps/webapp/app
- routes
- v3
- internal-packages/database/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | | - | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
460 | 468 | | |
461 | 469 | | |
462 | 470 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | | - | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
555 | 561 | | |
556 | 562 | | |
557 | 563 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
0 commit comments