UNPKG

sedk-mysql

Version:
25 lines 770 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InsertStep = void 0; const BaseStep_1 = require("../BaseStep"); const IntoStep_1 = require("./IntoStep"); class InsertStep extends BaseStep_1.BaseStep { constructor(prevStep) { super(prevStep); } getStepStatement() { return 'INSERT'; } getStepArtifacts() { return { tables: new Set(), columns: new Set() }; } into(table, ...columns) { this.throwIfTableNotInDb(table); if (columns.length === 0) { return new IntoStep_1.IntoTableStep(this, table); } return new IntoStep_1.IntoTableStep(this, table)(...columns); } } exports.InsertStep = InsertStep; //# sourceMappingURL=InsertStep.js.map