pull/761/head
Andrey 2023-03-07 18:26:05 +02:00
rodzic aae26b67d9
commit 49c0454e6e
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -61,7 +61,7 @@ engine = create_moonstream_engine(
SessionLocal = sessionmaker(bind=engine)
def yield_db_session() -> Generator[Session]:
def yield_db_session() -> Generator[Session, None, None]:
"""
Yields a database connection (created using environment variables).
As per FastAPI docs:
@ -85,7 +85,7 @@ RO_engine = create_moonstream_engine(
RO_SessionLocal = sessionmaker(bind=RO_engine)
def yield_db_read_only_session() -> Session:
def yield_db_read_only_session() -> Generator[Session, None, None]:
"""
Yields a database connection (created using environment variables).
As per FastAPI docs: