mirror of
https://github.com/dizedev/vk_lp.git
synced 2026-09-17 06:19:03 +00:00
8 lines
305 B
Python
8 lines
305 B
Python
from sqlalchemy.ext.asyncio import async_sessionmaker, create_async_engine
|
|
|
|
import config
|
|
|
|
DB_CONNECT_URL = f"postgresql+asyncpg://{config.psql_login}:{config.psql_password}@{config.psql_host}/{config.psql_database}"
|
|
engine = create_async_engine(DB_CONNECT_URL)
|
|
async_session = async_sessionmaker(engine)
|