mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-10 20:46:51 +00:00
✏ Fix typo in docs/en/docs/tutorial/sql-databases.md (#4875)
This commit is contained in:
parent
424674a082
commit
b017a33ebd
1 changed files with 1 additions and 1 deletions
|
|
@ -491,7 +491,7 @@ You can find an example of Alembic in a FastAPI project in the templates from [P
|
||||||
|
|
||||||
### Create a dependency
|
### Create a dependency
|
||||||
|
|
||||||
Now use the `SessionLocal` class we created in the `sql_app/databases.py` file to create a dependency.
|
Now use the `SessionLocal` class we created in the `sql_app/database.py` file to create a dependency.
|
||||||
|
|
||||||
We need to have an independent database session/connection (`SessionLocal`) per request, use the same session through all the request and then close it after the request is finished.
|
We need to have an independent database session/connection (`SessionLocal`) per request, use the same session through all the request and then close it after the request is finished.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue