Changes

Jump to navigation Jump to search
1 byte added ,  12:37, 23 January 2016
|-
|[[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}}.
|-
|[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.
|-
|[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.
|}
!Description
|-
|<code>[[Database Module#db:name|db:name]]</code>
|{{Code|db:name($node)}}
|Returns the name of the database in which the specified {{Code|$node}} is stored.
|-
|<code>[[Database Module#db:path|db:path]]</code>
|{{Code|db:path($node)}}
|Returns the path of the database document in which the specified {{Code|$node}} is stored.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu