change(assist-stats): db
This commit is contained in:
parent
8162f9a957
commit
bdb2be81d4
1 changed files with 0 additions and 10 deletions
|
|
@ -41,16 +41,6 @@ SessionLocal = sessionmaker(
|
|||
Base = declarative_base()
|
||||
|
||||
|
||||
@app.on_event("startup")
|
||||
def startup_db_client():
|
||||
Base.metadata.create_all(bind=engine)
|
||||
|
||||
|
||||
@app.on_event("shutdown")
|
||||
def shutdown_db_client():
|
||||
engine.dispose()
|
||||
|
||||
|
||||
def get_db():
|
||||
db = SessionLocal()
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue