|
* {{Mono|db:store("DB", "video/sample.mov", file:read-binary('video.mov'))}} stores the addressed video file at the specified location.
|}
==db:output==
{{Mark|Introduced with Version 7.2.1:}}
{|
|-
| valign='top' width='90' | '''Signatures'''
|{{Mono|'''db:output'''($data as item()) as empty-sequence()}}
|-
| valign='top' | '''Summary'''
|This function can be used to both perform updates and return results in a single query. The specified expression is evaluated, and the resulting value will be cached and returned after the ''pending update list'' has been processed.
|-
| valign='top' | '''Examples'''
|
* {{Mono|delete node //price, db:output("Prices have been deleted.")}} deletes all {{Mono|price}} elements in a database and returns an info message.
|}