from typing import Generator
from sqlalchemy.orm import Session
from .db import SessionLocal


def get_db() ->Generator[Session, None, None]:
    try:
        db = SessionLocal()
        yield db
    finally:
        db.close()

9e246f23a1e189040e1750e41238e34f8592856b
<mask token>

<mask token>


def get_db() ->Generator[Session, None, None]:
    try:
        db = SessionLocal()
        yield db
    finally:
        db.close()

from typing import Generator
from sqlalchemy.orm import Session
from .db import SessionLocal


def get_db() ->Generator[Session, None, None]:
    try:
        db = SessionLocal()
        yield db
    finally:
        db.close()
