lovefield-ts icon indicating copy to clipboard operation
lovefield-ts copied to clipboard

Allow UPDATE by expression

Open arthurhsu opened this issue 1 year ago • 0 comments

var updateExpression = { vars: [employee.salary], fn: function(x) { return x * 1.1; } };

db.update(employee). set(employee.salary, updateExpression). set(employee.bonus, 0). where(employee.hireDate.lt(....));

arthurhsu avatar Nov 09 '22 19:11 arthurhsu