@kuindji/sql-type-parser
Version:
Type-level SQL parser for TypeScript
26 lines • 932 B
JavaScript
/**
* SELECT Query Validator
*
* This module provides comprehensive validation for SELECT queries.
* It is separate from the matcher (QueryResult) to allow for deeper
* validation checks without impacting the performance of result type extraction.
*
* Design Philosophy:
* -----------------
* - QueryResult: Lightweight, focused on extracting column types for the result.
* Reports errors only for columns it can't resolve.
*
* - ValidateSelectSQL: Comprehensive validation including:
* - Column existence checks in SELECT clause
* - JOIN condition field validation
* - WHERE clause field validation
* - HAVING clause field validation
* - GROUP BY field validation
* - ORDER BY field validation
* - Type compatibility checks (future)
*
* This separation allows us to add deeper validation without making
* QueryResult slower or more complex.
*/
export {};
//# sourceMappingURL=validator.js.map