feat: implement project relational data platform

This commit is contained in:
xuelong committed 2026-07-30 11:51:46 +08:00
1 parent 506621966e
commit ada281862e
12 files changed
+2534 -189

No files matched your search

+2
View File
@@ -11,6 +11,7 @@ from starlette.exceptions import HTTPException as StarletteHTTPException
from app.api import api_router, openapi_router
from app.api.mcp_server import router as mcp_router
from app.db import init_pool, close_pool
from app.data_platform.schema import ensure_platform_registry
class SPAStaticFiles(StaticFiles):
@@ -33,6 +34,7 @@ class SPAStaticFiles(StaticFiles):
@asynccontextmanager
async def lifespan(_app: FastAPI):
await init_pool()
await ensure_platform_registry()
yield
await close_pool()