<update> update fields in a query

name
update
xml namespace
http://moyaproject.com/db

Update a query set with database expressions. Not to be confused with <update> in the default namespace.

Example

<db:query model="#Vote" filter="#Vote.topic=='moya'" dst="votes"/>
<db:update src="votes" let:topic="#Vote.score + 1" />
attributes
name purpose type required? default choices
db Database text No "_default"
src Queryset expression Yes
synchronize Synchronize session strategy text No "fetch" evaulate
fetch
none
inherited attributes
name purpose type required? default choices
dst Destination reference No
if Conditional expression expression No yes
value Value expression No None