mothership/mothership/db/__init__.py

8 lines
216 B
Python
Raw Normal View History

2023-06-26 17:57:57 +00:00
from sqlalchemy.ext.asyncio import AsyncEngine, create_async_engine
def new_engine() -> AsyncEngine:
return create_async_engine(
"postgresql+asyncpg://postgres:postgres@localhost:5432/mothership"
)