Put ops that touch the DB into a `with`-able object
salt = SQLAltery()
with salt.connect_to(conn) as obj:
obj.get_db_revision()
obj.migrate(...)
Anything that takes a conn should be moved into that object.
salt = SQLAltery()
with salt.connect_to(conn) as obj:
obj.get_db_revision()
obj.migrate(...)
Anything that takes a conn should be moved into that object.