UNPKG

rawsql-ts

Version:

[beta]High-performance SQL parser and AST analyzer written in TypeScript. Provides fast parsing and advanced transformation capabilities.

20 lines (19 loc) 963 B
import { SimpleSelectQuery } from '../../models/SimpleSelectQuery'; import { DataFlowGraph } from '../models/DataFlowGraph'; import { DataSourceHandler } from './DataSourceHandler'; /** * Handles the processing of SQL clauses for data flow generation * Note: This class is simplified to focus on data flow only, * filtering clauses like WHERE, GROUP BY, HAVING, etc. are excluded */ export declare class ProcessHandler { private graph; private dataSourceHandler; constructor(graph: DataFlowGraph, dataSourceHandler: DataSourceHandler); /** * Processes SQL clauses for data flow diagram generation * Returns the current node ID without adding process nodes * since we focus only on data flow (sources, joins, unions) */ processQueryClauses(query: SimpleSelectQuery, context: string, currentNodeId: string, cteNames: Set<string>, queryProcessor: (query: any, context: string, cteNames: Set<string>) => string): string; }