local database setup

This commit is contained in:
Yannic Kilcher
2022-12-13 16:19:29 +01:00
parent ceb8f873cc
commit 6bc64459f5
9 changed files with 68 additions and 9 deletions
+3
View File
@@ -2,4 +2,7 @@
from app.config import settings
from sqlmodel import create_engine
if settings.DATABASE_URI is None:
raise ValueError("DATABASE_URI is not set")
engine = create_engine(settings.DATABASE_URI)