feat(cli,database): 更新数据库引擎创建模式

This commit is contained in:
2026-06-04 18:51:09 +08:00
parent ee81ccefc5
commit 03928c6c59
6 changed files with 57 additions and 14 deletions
-7
View File
@@ -7,10 +7,3 @@ console = Console()
DATA_DIR = Path.cwd() / ".nyahome"
ENV_PATH = DATA_DIR / ".env"
LOGGING_YAML = DATA_DIR / "logging.yaml"
db_driver_available = {
"sqlite": ["sqlite3"],
"mysql": ["pymysql"],
"postgresql": ["psycopg"],
}
db_type_allowlist = ["sqlite", "mysql", "postgresql"]