Browse Source

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

pull/1424/head
Beau Barker 5 years ago
committed by GitHub
parent
commit
d53a253c8d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs_src/sql_databases/sql_app/main.py

2
docs_src/sql_databases/sql_app/main.py

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

Loading…
Cancel
Save