feat(database): add managed backup and offline restore (#6359)

This commit is contained in:
InfinityPacer
2026-08-19 17:34:32 +08:00
committed by GitHub
parent f4a879b3de
commit f700db5ac8
27 changed files with 1576 additions and 80 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
from typing import Tuple, Union
from app.runtime.config import settings
from app.application.database import get_configured_database_health
from app.application.database import get_database_governance
from app.modules import _ModuleBase
from app.schemas.types import ModuleType, OtherModulesType
@@ -51,7 +51,7 @@ class PostgreSQLModule(_ModuleBase):
"""
if settings.DB_TYPE != "postgresql":
return None
error = get_configured_database_health().test()
error = get_database_governance().test()
if error:
return False, f"PostgreSQL连接失败:{error}"
return True, ""