Changes

Jump to navigation Jump to search
39 bytes removed ,  11:37, 23 January 2016
!Description
|-
|<code>[[Database Module#db:open|db:open]]</code>
|db:open("db", "path/to/docs")
|Returns all documents that are found in the database {{Code|db}} at the (optional) path {{Code|path/to/docs}}.
|-
|<code>[http://www.xqueryfunctions.com/xq/fn_collection.html fn:collection]</code>
|collection("db/path/to/docs")
|Returns all documents at the location {{Code|path/to/docs}} in the database {{Code|db}}.<br/>If no path is specified after the database, all documents in the database will be returned.<br/>If no argument is specified, all documents of the database will be returned that has been opened in the global context.
|-
|<code>[http://www.xqueryfunctions.com/xq/fn_doc.html fn:doc]</code>
|doc("db/path/to/doc.xml")
|Returns the document at the location {{Code|path/to/docs}} in the database {{Code|db}}.<br/>An error is raised if the specified yields zero or more than one document.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu