Skip to content

Transaction rollback best practices when using connection pooling #197

Closed Answered by cjbj
urosdigital asked this question in Q&A
Discussion options

You must be logged in to vote
  • This isn't specific to pooling; the behavior would be the same with standalone connections
  • the DPY-1001 is expected because the context manager (with) has closed the connection by the time the exception handler is invoked
  • looking at the various python examples out there most get the resource (i.e. the connection in this case) before calling try.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@urosdigital
Comment options

@cjbj
Comment options

cjbj Jun 23, 2023
Maintainer

@urosdigital
Comment options

Answer selected by urosdigital
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants