Added pool_recyle to eng_args
parent
67d5c8c548
commit
e101db7d7d
|
@ -247,7 +247,7 @@ class DiscordDatabaseInterface(DatabaseInterface):
|
||||||
class GeoffreyDatabase:
|
class GeoffreyDatabase:
|
||||||
|
|
||||||
def __init__(self, engine_arg):
|
def __init__(self, engine_arg):
|
||||||
self.engine = create_engine(engine_arg, echo=True)
|
self.engine = create_engine(engine_arg, echo=, pool_recycle=3600)
|
||||||
Session = sessionmaker(bind=self.engine)
|
Session = sessionmaker(bind=self.engine)
|
||||||
self.session = Session()
|
self.session = Session()
|
||||||
self.meta = MetaData()
|
self.meta = MetaData()
|
||||||
|
|
Loading…
Reference in New Issue