Changes

Jump to navigation Jump to search
128 bytes added ,  14:45, 16 May 2023
===Built-in Functions===
Numerous [[Database Module#Updates|Database Functions]] exist in BaseX for performing document- and database-wide updates. XQUF provides a single function {{Code|fn:put()}} can be used to serialize for serializing nodes to secondary storage:
* The function will be executed after all other updates.
* Serialization parameters can be specified as third argument (more details are found in the [https://www.w3.org/TR/xquery-update-30/#id-func-put XQUF 3.0 Specification]).
Numerous additional [[Database Module#UpdatesIf you want to write intermediate results to files, it is more flexible to use {{Function|database functions]] exist for performing updates on document and database levelFile|file:write}}.
===User-Defined Functions===
If an updating function item is called, the function call must be prefixed with the keyword {{Code|updating}}keyword. This ensures that the query compiler can statically detect whether an invoked function item will perform updates or not:
<syntaxhighlight lang="xquery">
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu