srht.database: set future=True on SQ create_engine
Fixes "AttributeError: 'Connection' object has no attribute 'commit'"
This commit is contained in:
parent
4157c41ff0
commit
5dd53691c7
|
@ -29,7 +29,7 @@ _metrics = type("metrics", tuple(), {
|
|||
class DbSession():
|
||||
def __init__(self, connection_string, assign_global=True):
|
||||
global Base, _db
|
||||
self.engine = create_engine(connection_string)
|
||||
self.engine = create_engine(connection_string, future=True)
|
||||
self.session = scoped_session(sessionmaker(
|
||||
autocommit=False,
|
||||
autoflush=False,
|
||||
|
|
Loading…
Reference in New Issue