UNPKG

rawsql-ts

Version:

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

19 lines (18 loc) 675 B
import { CommonTable } from "../models/Clause"; import { Lexeme } from "../models/Lexeme"; export declare class CommonTableParser { static parse(query: string): CommonTable; static parseFromLexeme(lexemes: Lexeme[], index: number): { value: CommonTable; newIndex: number; trailingComments: string[] | null; }; private static collectPrecedingComments; private static collectWithTokenComments; private static collectTokenComments; private static addPositionedComment; private static parseAsKeyword; private static parseMaterializedFlag; private static parseInnerSelectQuery; private static extractComments; }