rawsql-ts
Version:
[beta]High-performance SQL parser and AST analyzer written in TypeScript. Provides fast parsing and advanced transformation capabilities.
21 lines • 797 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.InsertQuery = void 0;
// Represents an INSERT query in SQL.
// Supports single/multi-row VALUES and INSERT ... SELECT.
const SqlComponent_1 = require("./SqlComponent");
class InsertQuery extends SqlComponent_1.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;
}
}
exports.InsertQuery = InsertQuery;
InsertQuery.kind = Symbol("InsertQuery");
//# sourceMappingURL=InsertQuery.js.map
;