Initial commit

This commit is contained in:
2025-12-30 23:55:43 +03:00
commit bd1def421f
29 changed files with 1071 additions and 0 deletions
@@ -0,0 +1 @@
@@ -0,0 +1,9 @@
from sqlalchemy.ext.asyncio import AsyncEngine, async_sessionmaker, create_async_engine
def create_engine(database_url: str) -> AsyncEngine:
return create_async_engine(database_url, echo=False)
def create_session_maker(engine: AsyncEngine) -> async_sessionmaker:
return async_sessionmaker(engine, expire_on_commit=False)
@@ -0,0 +1 @@
@@ -0,0 +1,5 @@
from sqlalchemy.orm import DeclarativeBase
class Base(DeclarativeBase):
pass