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.ClusterStatementParser = void 0; const DDLStatements_1 = require("../models/DDLStatements"); 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 DDLStatements_1.ClusterStatement(), newIndex: lexemes.length, }; } } exports.ClusterStatementParser = ClusterStatementParser; //# sourceMappingURL=ClusterStatementParser.js.map