mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-08-14 12:00:19 +08:00
local database setup
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user