Changes

Jump to navigation Jump to search
1,155 bytes removed ,  12:49, 30 August 2012
Undo revision 8151 by CG (talk)
'''Important note:''' All functions in this section are ''updating functions'': they will not be immediately executed, but queued on the [[XQuery Update#Pending Update List|Pending Update List]], which will be processed after the actual query has been evaluated. This means that the order in which the functions are specified in the query does usually not reflect the order in which the code will be evaluated.
==db:create== {{Mark|Introduced with Version 7.4:}} {||-| width='90' | '''Signatures'''|{{Func|db:create|$name as xs:string|empty-sequence()}}|-| '''Summary'''|Creates an empty database with the specified {{Code|$name}}. An existing database will be overwritten.<br/>Note that this operation is placed last on the [[XQuery Update#Pending Update List|Pending Update List]]: databases will be created after all other update operations have been performed. While this order may seem counter-intuitive, it is consistent with the XQuery Update Facility, because a database cannot be referenced before it has been created anyway.|-| '''Examples'''|* {{Code|db:create("DB")}} creates an empty database named {{Code|DB}}.|} ==db:dropadd==
{{Mark|Introduced with Version 7.4:}}
{|
|-
| width='90' | '''Signatures'''
|{{Func|db:drop|$db as item()|empty-sequence()}}
|-
| '''Summary'''
|Drops the specified database.
|-
| '''Errors'''
|{{Error|FODC0002|XQuery Errors#Functions Errors}} {{Code|$input}} is a string representing a path, which cannot be read.
|-
| '''Examples'''
|
* {{Code|db:create("DB")}} creates an empty database named {{Code|DB}}.
|}
 
==db:add==
{|
|-
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu