UNPKG

rawsql-ts

Version:

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

31 lines 880 B
/** * Error thrown when a CTE with the same name already exists */ export class DuplicateCTEError extends Error { constructor(cteName) { super(`CTE '${cteName}' already exists in the query`); this.cteName = cteName; this.name = 'DuplicateCTEError'; } } /** * Error thrown when a CTE name is invalid */ export class InvalidCTENameError extends Error { constructor(cteName, reason) { super(`Invalid CTE name '${cteName}': ${reason}`); this.cteName = cteName; this.name = 'InvalidCTENameError'; } } /** * Error thrown when trying to operate on a non-existent CTE */ export class CTENotFoundError extends Error { constructor(cteName) { super(`CTE '${cteName}' not found in the query`); this.cteName = cteName; this.name = 'CTENotFoundError'; } } //# sourceMappingURL=CTEError.js.map