UNPKG

@simonecoelhosfo/optimizely-mcp-server

Version:

Optimizely MCP Server for AI assistants with integrated CLI tools

49 lines 1.44 kB
/** * View-Only SQL Builder for Intelligent Query Engine * * This builder ONLY generates SQL queries against views. * NO FALLBACKS to base tables or complex JOINs. * If a field is not available in a view, it throws an error. */ import { DateFunctionHandler } from './DateFunctionHandler.js'; import { JSONPathHandler } from './JSONPathHandler.js'; import type { UniversalQuery } from './types.js'; export declare class ViewOnlySQLBuilder { protected dateHandler: DateFunctionHandler; protected jsonHandler: JSONPathHandler; private primaryView; constructor(); /** * Build SQL query from UniversalQuery - VIEW ONLY */ buildSQL(query: UniversalQuery): Promise<string>; /** * Determine the primary view for the query based on entity type */ private determinePrimaryView; /** * Build SELECT clause using view field mappings */ private buildSelectClause; /** * Build WHERE clause using view field mappings */ private buildWhereClause; /** * Build standard condition */ private buildStandardCondition; /** * Build GROUP BY clause using view field mappings */ private buildGroupByClause; /** * Build ORDER BY clause using view field mappings */ private buildOrderByClause; /** * Build HAVING clause */ private buildHavingClause; } //# sourceMappingURL=ViewOnlySQLBuilder.d.ts.map