sedk-postgres
Version:
Simple SQL builder and validator
21 lines • 755 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.UpdateSetItemInfo = void 0;
const models_1 = require("./models");
const singletoneConstants_1 = require("./singletoneConstants");
class UpdateSetItemInfo {
constructor(column, value) {
this.column = column;
if (value instanceof singletoneConstants_1.Default) {
this.operand = value;
}
else {
this.operand = new models_1.Operand(value);
}
}
getStmt(data, artifacts, binderStore) {
return `${this.column.getStmt(data, artifacts)} = ${this.operand.getStmt(data, artifacts, binderStore)}`;
}
}
exports.UpdateSetItemInfo = UpdateSetItemInfo;
//# sourceMappingURL=UpdateSetItemInfo.js.map