sequelae-mcp
Version:
Let Claude, Cursor, and other AI agents run real SQL queries on live Postgres databases. No more copy-pasting SQL, stale schema docs, or hallucinated DB adapters — just raw, real-time access. Now with MCP support!
14 lines • 618 B
TypeScript
import { Client, PoolClient } from 'pg';
export interface JsonStructure {
[key: string]: JsonFieldInfo;
}
export interface JsonFieldInfo {
types: Set<string>;
optional: boolean;
arrayElementTypes?: Set<string>;
nestedStructure?: JsonStructure;
}
export declare function sampleJsonbColumn(client: Client | PoolClient, table: string, column: string, limit?: number): Promise<any[]>;
export declare function analyzeJsonStructure(samples: any[]): JsonStructure;
export declare function formatJsonStructure(structure: JsonStructure, indent?: number): string;
//# sourceMappingURL=jsonb-analyzer.d.ts.map