pymysql-pool icon indicating copy to clipboard operation
pymysql-pool copied to clipboard

Always Rollback When Closing/Returning a Connection and Support Connection Subclassing

Open dongyx opened this issue 1 year ago • 4 comments

  1. 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;

  2. Support subclassing pymysql.Connection.

dongyx avatar Feb 03 '24 10:02 dongyx