mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-28 16:20:34 +08:00
9 lines
221 B
Python
9 lines
221 B
Python
# -*- coding: utf-8 -*-
|
|
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)
|