small makeup

This commit is contained in:
Ivanov Matvey 2025-03-14 04:23:47 +10:00
parent 3a055456e6
commit 85712548d8
3 changed files with 5 additions and 2 deletions

View File

@ -7,7 +7,7 @@ from sqlalchemy.ext.asyncio import async_engine_from_config
from alembic import context
from src.database_adapter.model import Base
from src.database_adapter import Base
from src.settings import settings
# this is the Alembic Config object, which provides

View File

@ -0,0 +1,3 @@
from .engine import async_session_maker as async_session_maker
from .model import Base as Base
from .model import Log as Log

View File

@ -3,4 +3,4 @@ from sqlalchemy.ext.asyncio import async_sessionmaker, create_async_engine
from src.settings import settings
engine = create_async_engine(settings.postgres_url)
async_session_maker_db1 = async_sessionmaker(engine, expire_on_commit=False)
async_session_maker = async_sessionmaker(engine, expire_on_commit=False)