rawsql-ts
Version:
High-performance SQL parser and AST analyzer written in TypeScript. Provides fast parsing and advanced transformation capabilities.
17 lines (16 loc) • 537 B
TypeScript
import { CreateIndexStatement } from "../models/DDLStatements";
import { Lexeme } from "../models/Lexeme";
/**
* Parses CREATE INDEX statements.
*/
export declare class CreateIndexParser {
static parse(sql: string): CreateIndexStatement;
static parseFromLexeme(lexemes: Lexeme[], index: number): {
value: CreateIndexStatement;
newIndex: number;
};
private static parseIndexColumnList;
private static parseIdentifierList;
private static parseWithOptions;
private static isClauseTerminator;
}