Browse Source
Add database session management to tutorial007
pull/14930/head
Buikem
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
0 deletions
-
docs_src/dependencies/tutorial007_py310.py
|
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
from .database import DBSession |
|
|
async def get_db(): |
|
|
async def get_db(): |
|
|
db = DBSession() |
|
|
db = DBSession() |
|
|
try: |
|
|
try: |
|
|
|