RFC: Expose get_engine
Expose dbconn.BaseClient._get_engine
by changing it to dbconn.BaseClient._get_engine
.
This is needed to operate transactionally as follows:
with db_client.get_engine().begin() as transaction:
transaction.execute(QUERY_STMT)
transaction.execute(UPDATE_STMT)
This change is used in delver promoter.
Ref: https://docs.sqlalchemy.org/en/latest/core/connections.html#using-transactions
Edited by Pablo Lorenzatto