@kuindji/sql-type-parser
Version:
Type-level SQL parser for TypeScript
22 lines • 802 B
JavaScript
/**
* Query Type Router
*
* This module provides the main entry point for parsing SQL queries.
* It detects the query type (SELECT, INSERT, UPDATE, DELETE) and
* routes to the appropriate parser.
*
* Design Philosophy:
* -----------------
* Each query type has its own execution tree in the type system.
* This prevents TypeScript performance issues by avoiding deep
* conditional type evaluation across all query types simultaneously.
*
* When you add support for a new query type:
* 1. Create a new directory (e.g., src/insert/)
* 2. Implement ast.ts, parser.ts, matcher.ts in that directory
* 3. Add the query type to QueryType in common/ast.ts
* 4. Add a case to DetectQueryType and ParseSQL in this file
* 5. Export from index.ts
*/
export {};
//# sourceMappingURL=router.js.map