增加一些配置性工作

This commit is contained in:
2026-01-15 14:32:31 +08:00
parent 1e8ae960cd
commit 64b263cc2f
12 changed files with 62 additions and 256 deletions

View File

@@ -1,8 +1,8 @@
from sqlmodel import Session, SQLModel, create_engine
from config import setting
from config import Settings
PGSQL = setting.env.PGSQL or "sqlite:///database.db"
PGSQL = Settings().PGSQL
engine = create_engine(str(PGSQL))