pre-commit-ci-lite[bot]
4 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
3 additions and
0 deletions
-
docs_src/sql_databases/tutorial001_an_py310.py
-
docs_src/sql_databases/tutorial002_an_py310.py
|
|
|
@ -30,6 +30,7 @@ def get_session(): |
|
|
|
|
|
|
|
SessionDep = Annotated[Session, Depends(get_session)] |
|
|
|
|
|
|
|
|
|
|
|
@asynccontextmanager |
|
|
|
async def lifespan(app: FastAPI): |
|
|
|
create_db_and_tables() |
|
|
|
|
|
|
|
@ -46,6 +46,8 @@ def get_session(): |
|
|
|
|
|
|
|
|
|
|
|
SessionDep = Annotated[Session, Depends(get_session)] |
|
|
|
|
|
|
|
|
|
|
|
@asynccontextmanager |
|
|
|
async def lifespan(app: FastAPI): |
|
|
|
create_db_and_tables() |
|
|
|
|