Emit an error event when the database connection is interrupted #2218
Labels
kind/improvement
An improvement to existing feature and code.
tech/typescript
Issue for tech TypeScript.
topic: prisma-client
Milestone
Bug description
Right now, when a live database connection is interrupted (e.g. the database is shut down), Prisma (Client) does not emit any events, or I can't find a way of getting an event.
How to reproduce
Expected behavior
I want an event immediately when a connection fails, so I can kill the process (since in my environment often time it's just a network issue and restarting works).
Instead, it waits until the next database command comes in, then errors that one, but still doesn't emit any events
Environment & setup
The text was updated successfully, but these errors were encountered: