Endon.update_where
You're seeing just the function
update_where
, go back to Endon module for more information.
Specs
update_where(keyword() | map(), where_conditions()) :: {integer(), nil | [term()]}
Update multiple records in the data store based on conditions.
Update all the records that match the given conditions
, setting the given params
as attributes. params
can be either a Keyword
list or Map
of attributes and values,
and conditions
is the same as for where/2
.
It returns a tuple containing the number of entries and any returned result as second element. The second element is nil by default unless a select is supplied in the update query.