Changes

Jump to navigation Jump to search
127 bytes added ,  14:30, 22 May 2016
| '''Examples'''
|
* {{Code|db:list("docs")}} returns the names of all documents from the of a database named {{Code|docs}}.
|}
| '''Summary'''
|Returns a sequence of elements. The result is dependent on the number of arguments:
* Without arguments, info on all databases an element is returnedfor each database. A single An element contains has a value, which is the name of a the database, and several attributes, which contain the number of stored resources, the modification date of modification, and the database path.* If a database {{Code|$db}} is specified, all documents and raw files of the specified database are returned. An element contains has a value, which is the name of the resource, and several attributes, which contain the content type, the modified modification date, the raw flag (which indicates if the resource is binary or XML), and the size of a resource.
* Returned databases resources can be further restricted by the {{Code|$path}} argument.
The value of the size attribute is dependent depends on the resource type:* For for documents, it contains represents the number of nodes., and* For for binary data, it contains represents the number of bytes of the original resource.
|-
| '''Errors'''
| '''Examples'''
|
* {{Code|db:list-details("docsshop")}} returns the names plus additional data info on all resources of all documents from the a database named {{Code|docsshop}}.
|}
Bureaucrats, editor, reviewer, Administrators
13,551

edits

Navigation menu