Closed tdamsma closed 3 years ago
@tdamsma Thank you for your contribution. We still need to support older SQLAlchemy versions here, so it seems we have the need for a version check to use the new API. Would you like to implement such a check and fix the tests (currently the linter fails)?
session.transaction
is deprecated in sqlalchemy 2.0, se here: https://docs.sqlalchemy.org/en/14/orm/session_api.html?highlight=get_transaction#sqlalchemy.orm.Session.get_transactionSo use
session.get_transaction()
instead. Unfortunately this in only available from sqlalchemy 1.4.