UNPKG

rawsql-ts

Version:

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

14 lines 519 B
import { ClusterStatement } from '../models/DDLStatements'; export class ClusterStatementParser { static parseFromLexeme(lexemes, index) { const lexeme = lexemes[index]; if (!lexeme || lexeme.value.toLowerCase() !== 'cluster') { throw new Error(`[ClusterStatementParser] Expected CLUSTER at index ${index}.`); } return { value: new ClusterStatement(), newIndex: lexemes.length, }; } } //# sourceMappingURL=ClusterStatementParser.js.map