UNPKG

rawsql-ts

Version:

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

14 lines 540 B
import { CheckpointStatement } from '../models/DDLStatements'; export 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 CheckpointStatement(), newIndex: lexemes.length, }; } } //# sourceMappingURL=CheckpointStatementParser.js.map