UNPKG

rawsql-ts

Version:

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

18 lines 703 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ReindexStatementParser = void 0; const DDLStatements_1 = require("../models/DDLStatements"); 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 DDLStatements_1.ReindexStatement(), newIndex: lexemes.length, }; } } exports.ReindexStatementParser = ReindexStatementParser; //# sourceMappingURL=ReindexStatementParser.js.map