ihp
ihp copied to clipboard
Add `updateMany` Function, Similar to `createMany`
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