12 lines
246 B
Python
12 lines
246 B
Python
from typing import Generator
|
|
|
|
from sqlalchemy.orm import Session
|
|
|
|
from app.db.session import get_db
|
|
|
|
|
|
def get_db_session() -> Generator[Session, None, None]:
|
|
"""
|
|
Dependency to get a SQLAlchemy database session.
|
|
"""
|
|
return get_db() |