trails/packages/db
Ullrich Schäfer 2d0a4ac2c7
Fix withDb: catch all non-Response errors as DB failures
The previous version checked for specific error messages that
didn't match Drizzle's actual error text ("Failed query").
Now any error from a withDb-wrapped handler returns 503.
React Router Response objects are still re-thrown.

Verified: DB down → 503 JSON, DB up → 201, home page always 200.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 23:43:10 +01:00
..
src Fix withDb: catch all non-Response errors as DB failures 2026-03-24 23:43:10 +01:00
drizzle.config.ts Add local dev setup, fix BRouter Dockerfile, archive change (#12) 2026-03-22 23:11:43 +00:00
package.json Add Drizzle ORM with shared db package (#10) 2026-03-22 22:35:50 +00:00
tsconfig.json Add Drizzle ORM with shared db package (#10) 2026-03-22 22:35:50 +00:00