model output
This commit is contained in:
2
orm.py
2
orm.py
@@ -28,7 +28,7 @@ print('DB is {}:{}/{}'.format(dct_conf_db['address'], dct_conf_db['port'], dct_c
|
||||
engine = create_engine(str_login, poolclass=NullPool) # must be null pool to avoid connection lost error
|
||||
ins = inspect(engine)
|
||||
|
||||
Base = declarative_base(constructor=engine)
|
||||
Base = declarative_base()
|
||||
|
||||
db_session = Session(bind=engine)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user