rawsql-ts
Version:
[beta]High-performance SQL parser and AST analyzer written in TypeScript. Provides fast parsing and advanced transformation capabilities.
17 lines (16 loc) • 477 B
TypeScript
import { InsertQuery } from "../models/InsertQuery";
import { Lexeme } from "../models/Lexeme";
export declare class InsertQueryParser {
/**
* Parse SQL string to InsertQuery AST.
* @param query SQL string
*/
static parse(query: string): InsertQuery;
/**
* Parse from lexeme array (for internal use and tests)
*/
static parseFromLexeme(lexemes: Lexeme[], index: number): {
value: InsertQuery;
newIndex: number;
};
}