feat: implement auth, projects, and frontend foundation
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
from sqlalchemy.ext.asyncio import AsyncSession, async_sessionmaker, create_async_engine
|
||||
from sqlalchemy.pool import NullPool
|
||||
|
||||
from src.config import Settings, build_database_url
|
||||
|
||||
|
||||
settings = Settings()
|
||||
engine = create_async_engine(
|
||||
settings.database_url,
|
||||
future=True,
|
||||
poolclass=NullPool,
|
||||
)
|
||||
SessionLocal = async_sessionmaker(engine, class_=AsyncSession, expire_on_commit=False)
|
||||
|
||||
__all__ = ["SessionLocal", "build_database_url", "engine", "settings"]
|
||||
Reference in New Issue
Block a user