Changes

Jump to navigation Jump to search
507 bytes added ,  18:32, 13 March 2014
no edit summary
* {{Code|db:delete("DB", "docs/dir/doc.xml")}} deletes the document {{Code|docs/dir/doc.xml}} in the database {{Code|DB}}.
* {{Code|db:delete("DB", "docs/dir")}} deletes all documents with paths beginning with {{Code|docs/dir}} in the database {{Code|DB}}.
|}
 
==db:create-backup==
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|db:create-backup|$db as xs:string|empty-sequence()}}
|-
| '''Summary'''
|Creates a backup of the database {{Code|$db}}.
|-
| '''Errors'''
|{{Error|BXDB0002|XQuery Errors#BaseX Errors}} The addressed database does not exist or could not be opened.<br/>{{Error|BXDB0011|XQuery Errors#BaseX Errors}} Invalid database name.
|-
| '''Examples'''
|
* {{Code|db:create-backup("DB")}} creates a backup of the database {{Code|DB}}.
|}
administrator, Bureaucrats, editor, reviewer, Administrators
408

edits

Navigation menu