UNPKG

rawsql-ts

Version:

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

17 lines 644 B
// Represents an INSERT query in SQL. // Supports single/multi-row VALUES and INSERT ... SELECT. import { SqlComponent } from "./SqlComponent"; export class InsertQuery extends SqlComponent { /** * @param params.insertClause InsertClause instance (target table and columns) * @param params.selectQuery SELECT/VALUES query (required) */ constructor(params) { var _a; super(); this.insertClause = params.insertClause; this.selectQuery = (_a = params.selectQuery) !== null && _a !== void 0 ? _a : null; } } InsertQuery.kind = Symbol("InsertQuery"); //# sourceMappingURL=InsertQuery.js.map