UNPKG

rawsql-ts

Version:

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

18 lines 730 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CheckpointStatementParser = void 0; const DDLStatements_1 = require("../models/DDLStatements"); class CheckpointStatementParser { static parseFromLexeme(lexemes, index) { const lexeme = lexemes[index]; if (!lexeme || lexeme.value.toLowerCase() !== 'checkpoint') { throw new Error(`[CheckpointStatementParser] Expected CHECKPOINT at index ${index}.`); } return { value: new DDLStatements_1.CheckpointStatement(), newIndex: lexemes.length, }; } } exports.CheckpointStatementParser = CheckpointStatementParser; //# sourceMappingURL=CheckpointStatementParser.js.map