UNPKG

@kuindji/sql-type-parser

Version:
33 lines 1.04 kB
/** * @kuindji/sql-type-parser * * Type-level SQL Parser * * This module provides a type-level parser that transforms SQL query * string literals into their corresponding AST types at compile time. * * Architecture: * ------------ * The parser is organized into modules by query type: * - common/ - Shared utilities (tokenizer, AST nodes, utils) * - select/ - SELECT query parser * * Each query type has its own execution tree in the type system * to avoid TypeScript performance issues. * * @example * ```typescript * import type { ParseSQL, SQLSelectQuery } from '@kuindji/sql-type-parser' * * // Parse SQL to AST * type AST = ParseSQL<"SELECT id, name FROM users"> * // Returns SQLSelectQuery<SelectClause<...>> * ``` * * @packageDocumentation */ // ============================================================================ // Runtime API helpers // ============================================================================ export { createSelectFn } from "./db.js"; //# sourceMappingURL=index.js.map