UNPKG

@kuindji/sql-type-parser

Version:
22 lines 649 B
/** * INSERT Query Module * * This module provides type-level parsing, validation, and schema matching * for SQL INSERT queries. * * @example * ```typescript * import type { ParseInsertSQL, InsertResult, ValidateInsertSQL } from './insert' * * // Parse INSERT query * type AST = ParseInsertSQL<"INSERT INTO users (id, name) VALUES (1, 'John')"> * * // Get result type (for RETURNING clause) * type Result = InsertResult<"INSERT INTO users (id) VALUES (1) RETURNING *", Schema> * * // Validate query * type Valid = ValidateInsertSQL<"INSERT INTO users (id) VALUES (1)", Schema> * ``` */ export {}; //# sourceMappingURL=index.js.map