mirror of
https://github.com/grey-cat-1908/formaptix-server.git
synced 2024-11-11 18:57:27 +03:00
11 lines
273 B
Python
11 lines
273 B
Python
|
from models import settings
|
||
|
from sqlalchemy.ext.asyncio import create_async_engine, async_sessionmaker
|
||
|
from sqlalchemy.orm import DeclarativeBase
|
||
|
|
||
|
engine = create_async_engine(settings.database)
|
||
|
sessions = async_sessionmaker(engine)
|
||
|
|
||
|
|
||
|
class Base(DeclarativeBase):
|
||
|
pass
|