Closed mdantonio closed 1 year ago
Describe the bug With sqlalchemy 2.0+ a deprecation warning is raised. driver_connection has been introduced with sqlalchemy 1.4.24 and connection has been deprecated in favor of this with sqlachemy 2. Since 1.4.24 is exactly the minimum version required by django-db-connection-pool I hope that the fix can be easily introduced.
driver_connection
connection
django-db-connection-pool
Environment
Traceback
/usr/local/lib/python3.10/site-packages/dj_db_conn_pool/core/mixins.py:104: SADeprecationWarning: The _ConnectionFairy.connection attribute is deprecated; please use 'driver_connection' (deprecated since: 2.0) self.alias, conn.connection)
@altairbow Thanks for fixing this! Could you please push a new version with this fix to PyPi?
Sure, 1.2.5 has been released
Describe the bug With sqlalchemy 2.0+ a deprecation warning is raised.
driver_connection
has been introduced with sqlalchemy 1.4.24 andconnection
has been deprecated in favor of this with sqlachemy 2. Since 1.4.24 is exactly the minimum version required bydjango-db-connection-pool
I hope that the fix can be easily introduced.Environment
Traceback