|
* {{Code|db:backups("factbook")}} returns all backups that have been made from the {{Code|factbook}} database.
|}
==db:event==
{| width='100%'
|-
| width='90' | '''Signatures'''
|{{Func|db:event|$name as xs:string, $query as item()|empty-sequence()}}
|-
| '''Summary'''
|Executes a {{Code|$query}} and sends the resulting value to all clients watching the [[Events|Event]] with the specified {{Code|$name}}. The query may also perform updates; no event will be sent to the client that fired the event.
|-
| '''Errors'''
|{{Error|BXDB0010|XQuery Errors#BaseX Errors}} the specified event is unknown.<br/>{{Error|SEPM0016|XQuery_Errors#Serialization_Errors}} serialization errors occurred while sending the value.<br/>
|}
* {{Code|db:content-type("DB", "docs/doc01.xml")}} returns {{Code|application/xml}}.
* {{Code|db:content-type("DB", "docs/doc01")}} returns {{Code|application/xml}}, if {{Code|db:is-xml("DB", "docs/doc01")}} returns {{Code|true}}.
|}
==db:event==
{| width='100%'
|-
| width='90' | '''Signatures'''
|{{Func|db:event|$name as xs:string, $query as item()|empty-sequence()}}
|-
| '''Summary'''
|Executes a {{Code|$query}} and sends the resulting value to all clients watching the [[Events|Event]] with the specified {{Code|$name}}. The query may also perform updates; no event will be sent to the client that fired the event.
|-
| '''Errors'''
|{{Error|BXDB0010|XQuery Errors#BaseX Errors}} the specified event is unknown.<br/>{{Error|SEPM0016|XQuery_Errors#Serialization_Errors}} serialization errors occurred while sending the value.<br/>
|}