feat: implement project relational data platform
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user