UNPKG

rawsql-ts

Version:

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

11 lines (10 loc) 756 B
import { SimpleSelectQuery } from "../models/SelectQuery"; import { ValueComponent } from "../models/ValueComponent"; import { SqlComponentFormatOptions } from "./SqlComponentFormatter"; export interface TopLevelAndConditionDeduplicationResult { expression: ValueComponent; removedConditionSql: readonly string[]; } export declare const dedupeTopLevelAndConditionsWithMetadata: (expression: ValueComponent, options: SqlComponentFormatOptions) => TopLevelAndConditionDeduplicationResult; export declare const dedupeTopLevelAndConditions: (expression: ValueComponent, options: SqlComponentFormatOptions) => ValueComponent; export declare const dedupeWhereTopLevelAndConditions: (query: SimpleSelectQuery, options: SqlComponentFormatOptions) => void;