v0.1.1 update
This commit is contained in:
@@ -24,3 +24,8 @@ def get_db():
|
||||
yield db
|
||||
finally:
|
||||
db.close()
|
||||
|
||||
|
||||
def get_db_session():
|
||||
"""Get a database session directly (not as a dependency)"""
|
||||
return SessionLocal()
|
||||
|
||||
Reference in New Issue
Block a user