UNPKG

sedk-mysql

Version:
37 lines 1.49 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UpdateWhereAndStep = exports.UpdateWhereOrStep = exports.UpdateWhereStep = exports.UpdateConditionStep = void 0; const ConditionStep_1 = require("../ConditionStep"); const BaseStep_1 = require("../BaseStep"); class UpdateConditionStep extends ConditionStep_1.ConditionStep { and(cond1, op1, cond2, op2, cond3) { const whereParts = []; BaseStep_1.BaseStep.addConditionParts(whereParts, cond1, op1, cond2, op2, cond3); return new UpdateWhereAndStep(this, whereParts); } or(cond1, op1, cond2, op2, cond3) { const whereParts = []; BaseStep_1.BaseStep.addConditionParts(whereParts, cond1, op1, cond2, op2, cond3); return new UpdateWhereOrStep(this, whereParts); } } exports.UpdateConditionStep = UpdateConditionStep; class UpdateWhereStep extends UpdateConditionStep { constructor(prevStep, whereParts) { super('WHERE', prevStep, whereParts); } } exports.UpdateWhereStep = UpdateWhereStep; class UpdateWhereOrStep extends UpdateConditionStep { constructor(prevStep, whereParts) { super('OR', prevStep, whereParts); } } exports.UpdateWhereOrStep = UpdateWhereOrStep; class UpdateWhereAndStep extends UpdateConditionStep { constructor(prevStep, whereParts) { super('AND', prevStep, whereParts); } } exports.UpdateWhereAndStep = UpdateWhereAndStep; //# sourceMappingURL=UpdateConditionStep.js.map