Changes

Jump to navigation Jump to search
549 bytes added ,  17:40, 22 December 2011
no edit summary
|-
| valign='top' | '''Summary'''
|Returns information for on a database. {{Mono|$db}} may either be a string or a node stored in a database.<br />If {{Mono|$type}} is specified, the function returns information on a database index. It must be one of the values {{Mono|TEXT}}, {{Mono|ATTRIBUTE}}, {{Mono|FULLTEXT}}, {{Mono|PATH}}, {{Mono|TAG}}, or {{Mono|ATTNAME}}.
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#BaseX Errors|BASX0001]]</b> is raised if the specified index {{Mono|$type}} is not available.<br/><b>[[XQuery Errors#BaseX Errors|BASX0002]]</b> is raised if {{Mono|$db}} is a node that is not stored in a database.<br/><b>[[XQuery Errors#BaseX Errors|BASX0003]]</b> is raised if the addressed database {{Mono|$db}} cannot be opened.<br/>
|-
| valign='top' | '''Examples'''
| valign='top' | '''Summary'''
|Returns an {{Mono|xs:string}} sequence with the names of all databases. If {{Mono|$db}} is specified, all documents and raw files of the specified database are returned. The list of resources can be further restricted by the {{Mono|$path}} argument.<br/>{{Mark|Modified in Version 7.0}}: database and resource path are now specified as two separate arguments.
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#BaseX Errors|BASX0002]]</b> is raised if {{Mono|$db}} is a node that is not stored in a database.<br/><b>[[XQuery Errors#BaseX Errors|BASX0003]]</b> is raised if the addressed database {{Mono|$db}} cannot be opened.<br/>
|}
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#BaseX Errors|BASX0003]]</b> is raised if the database is not foundaddressed by {{Mono|$db}} cannot be opened.<br/>
|-
| valign='top' | '''Examples'''
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#BaseX Errors|BASX0002]]</b> is raised if {{Mono|$db}} is not a database node.<br/><b>[[XQuery Errors#BaseX Errors|BASX0003]]</b> is raised if the database addressed by {{Mono|$db}} is a string and a database with that name cannot be opened.<br/><b>[[XQuery Errors#Functions Errors|FODC0002]]</b> is raised if {{Mono|$input}} is a string representing a path, which cannot be read.<br/><b>[[XQuery Errors#Update Errors|FOUP0001]]</b> is raised if {{Mono|$input}} is not a string and not a document node.
|-
| valign='top' | '''Examples'''
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#BaseX Errors|BASX0002]]</b> is raised if {{Mono|$db}} is not a database node.<br/><b>[[XQuery Errors#BaseX Errors|BASX0003]]</b> is raised if the database addressed by {{Mono|$db}} is a string and a database with that name cannot be opened.<br/>
|-
| valign='top' | '''Examples'''
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#BaseX Errors|BASX0002]]</b> is raised if {{Mono|$db}} is not a database node.<br/><b>[[XQuery Errors#BaseX Errors|BASX0003]]</b> is raised if the database addressed by {{Mono|$db}} is a string and a database with that name cannot be opened.<br/><b>[[XQuery Errors#BaseX Errors|BASX0014]]</b> is raised if an error occurs during optimizing the data structures.<br/><b>[[XQuery Errors#BaseX Errors|BASX0015]]</b> is raised if the {{Mono|$all}} flag is set to {{Mono|true()}}, but the database is an in-memory database.<br/><b>[[XQuery Errors#BaseX Errors|BASX0016]]</b> is raised if the database {{Mono|$db}} is in use by other user(s).
|-
| valign='top' | '''Examples'''
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#BaseX Errors|BASX0002]]</b> is raised if {{Mono|$db}} is not a database node.<br/><b>[[XQuery Errors#BaseX Errors|BASX0003]]</b> is raised if the database addressed by {{Mono|$db}} is a string and a database with that name cannot be opened.<br/><b>[[XQuery Errors#BaseX Errors|BASX0013]]</b> is raised if new document name(s) will be empty.
|-
| valign='top' | '''Examples'''
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#BaseX Errors|BASX0002]]</b> is raised if {{Mono|$db}} is not a database node.<br/><b>[[XQuery Errors#BaseX Errors|BASX0003]]</b> is raised if the database addressed by {{Mono|$db}} is a string and a database with that name cannot be opened.<br/><b>[[XQuery Errors#BaseX Errors|BASX0012]]</b> is raised if {{Mono|$path}} is not a single document path.<br/><b>[[XQuery Errors#Functions Errors|FODC0002]]</b> is raised if {{Mono|$input}} is a string representing a path, which cannot be read.<br/><b>[[XQuery Errors#Update Errors|FOUP0001]]</b> is raised if {{Mono|$input}} is not a string and not a document node.
|-
| valign='top' | '''Examples'''
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu