Skip to main content

update_many

Macro update_many 

Source
update_many!() { /* proc-macro */ }
Expand description

prax::update_many! — schema-aware DSL targeting update_many. Top-level keys: where: (optional non-unique filter), data: (required).

Warning: an empty/omitted where: matches every row in the table — see the trait-level note on WhereInput.

prax::update_many!(client.user, {
    where: { active: false },
    data: { active: true },
});