Changes

Jump to navigation Jump to search
312 bytes added ,  16:44, 1 May 2012
no edit summary
|-
| valign='top' | '''Summary'''
|Returns meta information on the database specified by <code>[[#Database Argument|$db]]</code>.
|}
|-
| valign='top' | '''Summary'''
|Returns an {{Mono|xs:string}} sequence with the names of all databases.<br/>If <code>[[#Database Argument|$db]] </code> is specified, all documents and raw files of the specified database are returned.<br/>The list of resources can be further restricted by the {{Mono|$path}} argument.
|-
| valign='top' | '''Examples'''
|-
| valign='top' | '''Summary'''
|Returns an {{Mono|element}} sequence with the names of all databases together with their database path, the number of stored resources and the date of modification.<br/>If <code>[[#Database Argument|$db]] </code> is specified, all documents and raw files of the specified database together with their content-type, the modification date and the resource type are returned.<br/>The list of resources can be further restricted by the {{Mono|$path}} argument.
|-
| valign='top' | '''Examples'''
|-
| valign='top' | '''Summary'''
|Returns a sequence with all document nodes contained in the database specified by <code>[[#Database Argument|$db]]</code>.<br/>The document nodes to be returned can be restricted by the {{Mono|$path}} argument.
|-
| valign='top' | '''Examples'''
|-
| valign='top' | '''Summary'''
|Opens the database specified by <code>[[#Database Argument|$db]] </code> and returns the node with the specified {{Mono|$id}} value.<br />Each database node has a persistent ''id'', which remains valid after update operations. If no updates are performed, the ''pre'' value can be requested, which provides access to database nodes in constant time.
|}
|-
| valign='top' | '''Summary'''
|Opens the database specified by <code>[[#Database Argument|$db]] </code> and returns the node with the specified {{Mono|$pre}} value.<br />The ''pre'' value provides access to a database node in constant time, but it is ''transient'', i.e., it may change when database updates are performed.
|-
| valign='top' | '''Errors'''
|-
| valign='top' | '''Summary'''
|Returns all attribute nodes of the database specified by <code>[[#Database Argument|$db]] </code> that have {{Mono|$string}} as string value. If available, the value index is used to speed up evaluation.<br />If {{Mono|$attname}} is specified, the resulting attribute nodes are filtered by their attribute name.
|-
| valign='top' | '''Examples'''
|-
| valign='top' | '''Summary'''
|Returns all attributes of the database specified by <code>[[#Database Argument|$db]]</code>, the string values of which are larger than or equal to {{Mono|$min}} and smaller than or equal to {{Mono|$max}}. If available, the value index is used to speed up evaluation.
|-
| valign='top' | '''Examples'''
|-
| valign='top' | '''Summary'''
|Returns all text nodes from the full-text index of the database specified by <code>[[#Database Argument|$db]] </code> that contain the text specified as {{Mono|$terms}}.<br/>The options used for building the full-text will also be applied to the search terms. As an example, if the index terms have been stemmed, the search string will be stemmed as well.
|-
| valign='top' | '''Errors'''
|-
| valign='top' | '''Summary'''
|Returns the ''id'' values of all {{Mono|$nodes}} of the database specified by <code>[[#Database Argument|$db]]</code>.<br/>Each database node has a persistent ''id'', which remains valid after update operations. If no updates are performed, the ''pre'' value can be requested, which provides access to database nodes in constant time.
|}
|-
| valign='top' | '''Summary'''
|Returns the ''pre'' values of all {{Mono|$nodes}} of the database specified by <code>[[#Database Argument|$db]]</code>.<br/>The ''pre'' value provides access to a database node in constant time, but it is ''transient'', i.e., it may change when database updates are performed.
|-
| valign='top' | '''Examples'''
|-
| valign='top' | '''Summary'''
|Returns a binary database resource addressed by <code>[[#Database Argument|$db]] </code> and {{Mono|$path}}.
|-
| valign='top' | '''Errors'''
|-
| valign='top' | '''Summary'''
|Returns all text nodes of the database specified by <code>[[#Database Argument|$db]] </code> that have {{Mono|$string}} as their string value. If available, the value index is used to speed up evaluation.
|-
| valign='top' | '''Examples'''
|-
| valign='top' | '''Summary'''
|Returns all text nodes of the database specified by <code>[[#Database Argument|$db]] </code> that are located in between the {{Mono|$min}} and {{Mono|$max}} strings. If available, the value index is used to speed up evaluation.
|-
| valign='top' | '''Examples'''
|-
| valign='top' | '''Summary'''
|Adds documents specified by {{Mono|$input}} to the database <code>[[#Database Argument|$db]] </code> and the specified {{Mono|$path}}.
|-
| valign='top' | '''Errors'''
|-
| valign='top' | '''Summary'''
|Deletes document(s), specified by {{Mono|$path}}, from the database <code>[[#Database Argument|$db]]</code>.
|-
| valign='top' | '''Examples'''
|-
| valign='top' | '''Summary'''
|Optimizes the meta data and indexes of the database <code>[[#Database Argument|$db]]</code>.<br/>If {{Mono|$all}} is set to {{Mono|true()}}, the complete database will be rebuilt.
|-
| valign='top' | '''Errors'''
|-
| valign='top' | '''Summary'''
|Renames document(s), specified by {{Mono|$path}} to {{Mono|$newpath}} in the database <code>[[#Database Argument|$db]]</code>.
|-
| valign='top' | '''Errors'''
|-
| valign='top' | '''Summary'''
|Replaces a document, specified by {{Mono|$path}}, in the database <code>[[#Database Argument|$db]] </code> with the content of {{Mono|$input}}.
|-
| valign='top' | '''Errors'''
|-
| valign='top' | '''Summary'''
|Stores a binary resource specified by {{Mono|$data}} in the database specified by <code>[[#Database Argument|$db]] </code> and the location specified by {{Mono|$path}}.
|-
| valign='top' | '''Errors'''
|-
| valign='top' | '''Summary'''
|Checks if the database specified by <code>[[#Database Argument|$db]] </code> or the resource specified by {[Mono|$path}} exists. {{Mono|false}} is returned if a database directory has been addressed.
|-
| valign='top' | '''Examples'''
|-
| valign='top' | '''Summary'''
|Checks if the specified resource in the database <code>[[#Database Argument|$db]] </code> and the path {{Mono|$path}} exists, and if it is a raw file.
|-
| valign='top' | '''Examples'''
|-
| valign='top' | '''Summary'''
|Checks if the specified resource in the database <code>[[#Database Argument|$db]] </code> and the path {{Mono|$path}} exists, and if it is an XML document.
|-
| valign='top' | '''Examples'''
|-
| valign='top' | '''Summary'''
|Retrieves the content type of a resource in the database <code>[[#Database Argument|$db]] </code> and the path {{Mono|$path}}.<br/>The file extension is used to recognize the content-type of a resource stored in the database. Content-type {{Mono|application/xml}} will be returned for any XML document stored in the database, regardless of its file name extension.
|-
| valign='top' | '''Errors'''
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu