📝 Update location of get_db in SQL docs (#1293)

This commit is contained in:
Beau Barker
2020-05-17 20:14:14 +10:00
committed by GitHub
parent f8f0a6e462
commit d53a253c8d

View File

@@ -13,8 +13,8 @@ app = FastAPI()
# Dependency
def get_db():
db = SessionLocal()
try:
db = SessionLocal()
yield db
finally:
db.close()