Removed pool_pre_ping=True from create_engine.
parent
23c9ecc72a
commit
984c693c88
|
@ -26,9 +26,9 @@ class GeoffreyDatabase:
|
||||||
|
|
||||||
def __init__(self, bot_config, debug):
|
def __init__(self, bot_config, debug):
|
||||||
if not debug:
|
if not debug:
|
||||||
self.engine = create_engine(bot_config.engine_args, pool_recycle=3600, pool_pre_ping=True)
|
self.engine = create_engine(bot_config.engine_args, pool_recycle=3600)
|
||||||
else:
|
else:
|
||||||
self.engine = create_engine(bot_config.config['SQL']['test_args'], pool_recycle=3600, pool_pre_ping=True)
|
self.engine = create_engine(bot_config.config['SQL']['test_args'], pool_recycle=3600)
|
||||||
self.Session = sessionmaker(bind=self.engine)
|
self.Session = sessionmaker(bind=self.engine)
|
||||||
SQL_Base.metadata.create_all(self.engine)
|
SQL_Base.metadata.create_all(self.engine)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue