@hechtcarmel/vertica-mcp
Version:
MCP (Model Context Protocol) server for readonly Vertica database operations
70 lines • 1.89 kB
TypeScript
import type { BaseError } from "../types/errors.js";
export declare function createSuccessResponse<T>(data: T): string;
export declare function createErrorResponse(error: BaseError | Error | string): string;
export declare function formatQueryResult(result: {
rows: Record<string, unknown>[];
rowCount: number;
fields: {
name: string;
format: string;
}[];
query?: string;
}): {
query: string | undefined;
rowCount: number;
fields: {
name: string;
dataType: string;
}[];
rows: Record<string, unknown>[];
};
export declare function formatTableStructure(structure: {
schemaName: string;
tableName: string;
tableType: string;
owner: string;
comment?: string;
columns: Array<{
columnName: string;
dataType: string;
isNullable: boolean;
defaultValue?: string;
columnSize?: number;
decimalDigits?: number;
ordinalPosition: number;
comment?: string;
}>;
constraints: Array<{
constraintName: string;
constraintType: string;
columnName: string;
referencedTable?: string;
referencedColumn?: string;
}>;
}): {
table: {
schemaName: string;
tableName: string;
tableType: string;
owner: string;
comment: string | undefined;
};
columns: {
name: string;
dataType: string;
nullable: boolean;
defaultValue: string | undefined;
size: number | undefined;
decimalDigits: number | undefined;
position: number;
comment: string | undefined;
}[];
constraints: {
name: string;
type: string;
column: string;
referencedTable: string | undefined;
referencedColumn: string | undefined;
}[];
};
//# sourceMappingURL=response-formatter.d.ts.map