rawsql-ts
Version:
High-performance SQL parser and AST analyzer written in TypeScript. Provides fast parsing and advanced transformation capabilities.
18 lines • 694 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.VacuumStatementParser = void 0;
const DDLStatements_1 = require("../models/DDLStatements");
class VacuumStatementParser {
static parseFromLexeme(lexemes, index) {
const lexeme = lexemes[index];
if (!lexeme || lexeme.value.toLowerCase() !== 'vacuum') {
throw new Error(`[VacuumStatementParser] Expected VACUUM at index ${index}.`);
}
return {
value: new DDLStatements_1.VacuumStatement(),
newIndex: lexemes.length,
};
}
}
exports.VacuumStatementParser = VacuumStatementParser;
//# sourceMappingURL=VacuumStatementParser.js.map