Updated for python 3.9 compat

pull/3/head
Wilhelm Westermark 3 years ago
parent 389409d814
commit 2f67fbf69a

@ -324,7 +324,8 @@ def connect(user, password, db, host='localhost', port=5432):
con = sqlalchemy.create_engine(url, client_encoding='utf8') con = sqlalchemy.create_engine(url, client_encoding='utf8')
# We then bind the connection to MetaData() # We then bind the connection to MetaData()
meta = sqlalchemy.MetaData(bind=con, reflect=True) meta = sqlalchemy.MetaData(bind=con)
meta.reflect(bind=con)
return con, meta return con, meta

Loading…
Cancel
Save