include time restriction
All checks were successful
release-tag / release-image (push) Successful in 42s
All checks were successful
release-tag / release-image (push) Successful in 42s
This commit is contained in:
@@ -6,8 +6,10 @@ from sqlmodel import Session
|
||||
|
||||
from app.core.db import engine
|
||||
|
||||
|
||||
def get_db() -> Generator[Session, None, None]:
|
||||
with Session(engine) as session:
|
||||
yield session
|
||||
|
||||
|
||||
SessionDep = Annotated[Session, Depends(get_db)]
|
||||
|
||||
Reference in New Issue
Block a user