ihp icon indicating copy to clipboard operation
ihp copied to clipboard

Add `updateMany` Function, Similar to `createMany`

Open s0kil opened this issue 2 years ago • 0 comments

tasks <- query @Task |> filterWhere (#isCompleted, False)
updateMany tasks (set #isCompleted True)

updateManyWhere (filterWhere (#isCompleted, False)) (#isCompleted, True)
-- UPDATE tasks SET is_completed = 1 WHERE is_completed = 0

s0kil avatar Mar 10 '22 06:03 s0kil