UNPKG

rawsql-ts

Version:

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

18 lines (17 loc) 704 B
import { SqlFormatter } from './SqlFormatter'; import { SqlComponent, SqlComponentVisitor } from '../models/SqlComponent'; import { FormatterConfig } from '../parsers/SqlPrintTokenParser'; /** * @deprecated The Formatter class is deprecated. Use SqlFormatter instead. */ export declare class Formatter implements SqlComponentVisitor<string> { private sqlFormatter; constructor(); format(arg: SqlComponent, config?: FormatterConfig | null): string; formatWithParameters(arg: SqlComponent, config?: FormatterConfig | null): { sql: string; params: any[] | Record<string, any>[] | Record<string, any>; }; visit(arg: SqlComponent): string; } export { SqlFormatter };