UNPKG

rawsql-ts

Version:

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

11 lines 542 B
import { FullNameParser } from "./FullNameParser"; import { ColumnReference } from "../models/ValueComponent"; export class IdentifierParser { static parseFromLexeme(lexemes, index) { // Use FullNameParser to robustly parse qualified identifiers, including wildcards and escaped names. const { namespaces, name, newIndex } = FullNameParser.parseFromLexeme(lexemes, index); const value = new ColumnReference(namespaces, name); return { value, newIndex }; } } //# sourceMappingURL=IdentifierParser.js.map