From: William Poetra Yoga Date: Mon, 9 May 2022 23:54:51 +0000 (+0700) Subject: ✏ Fix typo in `docs/en/docs/tutorial/sql-databases.md` (#4875) X-Git-Tag: 0.77.0~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b017a33ebd4b440ba24cd41cb5eb0d1ae107fe7e;p=thirdparty%2Ffastapi%2Ffastapi.git ✏ Fix typo in `docs/en/docs/tutorial/sql-databases.md` (#4875) --- diff --git a/docs/en/docs/tutorial/sql-databases.md b/docs/en/docs/tutorial/sql-databases.md index 9dc2f64c6e..60c7fb0665 100644 --- a/docs/en/docs/tutorial/sql-databases.md +++ b/docs/en/docs/tutorial/sql-databases.md @@ -491,7 +491,7 @@ You can find an example of Alembic in a FastAPI project in the templates from [P ### 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.