/** * Database management API handlers for the Milady Control UI. * * Provides endpoints for: * - Database provider configuration (PGLite vs Postgres) * - Connection testing for remote Postgres * - Table browsing and introspection * - Row-level CRUD operations * - Raw SQL query execution * - Database status and health * * All data endpoints use the active runtime's database adapter (Drizzle ORM) * so they work identically for both PGLite and Postgres. */ import type http from "node:http"; import { type AgentRuntime } from "@elizaos/core"; /** * Route a database API request. Returns true if handled, false if not matched. * * Expected URL patterns: * GET /api/database/status * GET /api/database/config * PUT /api/database/config * POST /api/database/test * GET /api/database/tables * GET /api/database/tables/:table/rows * POST /api/database/tables/:table/rows * PUT /api/database/tables/:table/rows * DELETE /api/database/tables/:table/rows * POST /api/database/query */ export declare function handleDatabaseRoute(req: http.IncomingMessage, res: http.ServerResponse, runtime: AgentRuntime | null, pathname: string): Promise; //# sourceMappingURL=database.d.ts.map