mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-13 00:50:06 +08:00
9 lines
223 B
Python
9 lines
223 B
Python
# -*- coding: utf-8 -*-
|
|
from oasst.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)
|