Untitled
unknown
plain_text
17 days ago
434 B
2
Indexable
Never
from typing import Annotated, Generator from sqlalchemy import create_engine # from sqlalchemy.ext.asyncio import create_async_engine as create_engine from sqlalchemy.orm import sessionmaker from .settings import get_settings # Disable logging of SQLAlchemy with "echo=False" engine = create_engine(get_settings().database_url, echo=False) SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
Leave a Comment