mirror of
https://github.com/dizedev/vk_lp.git
synced 2026-09-17 07:28:50 +00:00
more cool features
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user