rawsql-ts
Version:
[beta]High-performance SQL parser and AST analyzer written in TypeScript. Provides fast parsing and advanced transformation capabilities.
13 lines (12 loc) • 435 B
TypeScript
import { Lexeme } from "../models/Lexeme";
import { ReturningClause } from "../models/Clause";
export declare class ReturningClauseParser {
/**
* Parse RETURNING clause from lexemes, starting at the given index.
* Returns a ReturningClause instance and the new index after parsing.
*/
static parseFromLexeme(lexemes: Lexeme[], index: number): {
value: ReturningClause;
newIndex: number;
};
}