Support globally setting or disabling interactive transaction timeout #14487
Labels
kind/feature
A request for a new feature.
team/client
Issue for team Client.
topic: configuration
topic: dx
topic: interactiveTransactions
Milestone
Problem
I often need to debug transactions in Postgres in development, but in interactive transactions, pausing at a breakpoint for more than 5 seconds leads the transaction to rollback so I can't watch the request continue. I'd like to be able to disable the timeout in debug so I can observe this behavior better.
Suggested solution
Add an interactive transaction timeout setting to the
PrismaClient
constructor that sets the timeout globally. This would allow me to set up my own debug logic as needed.Alternatives
Create a facade function for interactive transactions that sets this for me. This is of course a bandaid solution.
Context
#8664 (comment)
The text was updated successfully, but these errors were encountered: