2024-10-14 21:18:07 +04:00
|
|
|
from sqlalchemy.ext.asyncio import AsyncSession, create_async_engine, async_sessionmaker
|
2024-10-14 22:02:08 +04:00
|
|
|
from config import settings
|
2024-10-14 21:18:07 +04:00
|
|
|
|
2024-10-14 22:02:08 +04:00
|
|
|
engine = create_async_engine(url=settings.db_url_asyncpg, echo=True)
|
2024-10-14 21:18:07 +04:00
|
|
|
|
|
|
|
async_session = async_sessionmaker(engine)
|