Changes

Jump to navigation Jump to search
471 bytes added ,  14:29, 8 November 2012
no edit summary
* {{Code|db:create("DB", "<a/>", "doc.xml")}} creates the database {{Code|DB}} and adds the document with content {{Code|&lt;a/&gt;}} under the name {{Code|doc.xml}}.
* {{Code|db:create("DB", "/home/dir/", "docs/dir")}} creates the database {{Code|DB}} and adds the documents in {{Code|/home/dir}} to the database under the path {{Code|docs/dir}}.
|}
 
==db:drop==
{{Mark|Introduced with Version 7.5:}}
{|
|-
| width='90' | '''Signatures'''
|{{Func|db:drop|$db as item()|empty-sequence()}}
|-
| '''Summary'''
|Drops the database specified by the [[#Database Nodes|database node]] {{Code|$db}} and all connected resources.
|-
| '''Errors'''
|{{Error|BXDB0011|#Errors}} {{Code|$db}} is not a valid database name.
|-
| '''Examples'''
|
* {{Code|db:drop("DB")}} drops the database {{Code|DB}}.
|}
* Added: [[#db:backups|db:backups]]
* Added: [[#db:create|db:create]]
* Added: [[#db:drop|db:drop]]
;Version 7.3
administrator, Bureaucrats, editor, reviewer, Administrators
408

edits

Navigation menu