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 { UpdateQuery } from "../models/UpdateQuery";
import { Lexeme } from "../models/Lexeme";
export declare class UpdateQueryParser {
/**
* Parse SQL string to UpdateQuery AST.
* @param query SQL string
*/
static parse(query: string): UpdateQuery;
/**
* Parse from lexeme array (for internal use and tests)
*/
static parseFromLexeme(lexemes: Lexeme[], index: number): {
value: UpdateQuery;
newIndex: number;
};
}