pymysql-pool
pymysql-pool copied to clipboard
Always Rollback When Closing/Returning a Connection and Support Connection Subclassing
-
While closing a connection, even it's just returned to the pool,
rollback()
should be called to keep consistent with the behavior of real closing and to prevent from chaos between multiple sessions; -
Support subclassing
pymysql.Connection
.