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 { ReindexStatement } from '../models/DDLStatements'; export class ReindexStatementParser { static parseFromLexeme(lexemes, index) { const lexeme = lexemes[index]; if (!lexeme || lexeme.value.toLowerCase() !== 'reindex') { throw new Error(`[ReindexStatementParser] Expected REINDEX at index ${index}.`); } return { value: new ReindexStatement(), newIndex: lexemes.length, }; } } //# sourceMappingURL=ReindexStatementParser.js.map