|-
| valign='top' width='90' | '''Signatures'''
|<code> <b>db:system</b>() as xs:string</code><br />
|-
| valign='top' | '''Summary'''
|-
| valign='top' width='90' | '''Signatures'''
|<code> <b>db:list</b>() as xs:string*</code><br />
|-
| valign='top' | '''Summary'''
|-
| valign='top' width='90' | '''Signatures'''
|<code> <b>db:open</b>($name as xs:string) as document-node()</code><br />
|-
| valign='top' | '''Summary'''
|-
| valign='top' width='90' | '''Signatures'''
|<code> <b>db:open-pre</b>($name as xs:string, $pre as xs:integer) as node()</code><br />
|-
| valign='top' | '''Summary'''
|-
| valign='top' width='90' | '''Signatures'''
|<code> <b>db:open-id</b>($name as xs:string, $id as xs:integer) as node()</code><br />
|-
| valign='top' | '''Summary'''
| valign='top' | '''Errors'''
|<b>[BASX0004]</b> is raised if the specified <code>$id</code> does not exist in the database.<br />
|}
==db:node-pre==
{|
|-
| valign='top' width='90' | '''Signatures'''
|<code>
<b>db:node-pre</b>($nodes as node()*) as node()</code>
<br />
|-
| valign='top' | '''Summary'''
|Returns the <code>pre</code> values of database nodes.
|-
| valign='top' | '''Rules'''
|This function returns the <code>pre</code> values of all database nodes specified by <code>$nodes</code>. <code>pre</code> values are direct, internal pointers to database nodes, which might be changed by updates.<br />
|-
| valign='top' | '''Examples'''
|The expression <code>db:node-pre(doc("input"))</code> returns <code>0</code> if the database <code>input</code> contains a single document.<br />
|}
==db:node-pre==
{|
|-
| valign='top' width='90' | '''Signatures'''
|<code>
<b>db:node-pre</b>($nodes as node()*) as node()</code>
<br />
|-
| valign='top' | '''Summary'''
|Returns the <code>id</code> values of database nodes.
|-
| valign='top' | '''Rules'''
|This function returns the <code>id</code> values of all database nodes specified by <code>$nodes</code>. <code>id</code> values are pointers to database nodes, which are not changed by updates.<br />
|}
|-
| valign='top' width='90' | '''Signatures'''
|<code> <b>db:text</b>($string as item()) as text()*</code><br />
|-
| valign='top' | '''Summary'''
|-
| valign='top' | '''Errors'''
|<b>[BASX0001]</b> is raised if the index is not available.<br /><b>[BASX0002]</b> is raised if the context item does not represent a database node.<br />
|}
|-
| valign='top' width='90' | '''Signatures'''
|<code> <b>db:attribute</b>($string as item()) as attribute()*</code><br /><code> <b>db:attribute</b>($string as item(), $name as xs:string) as attribute()*</code><br />
|-
| valign='top' | '''Summary'''
|-
| valign='top' | '''Errors'''
|<b>[BASX0001]</b> is raised if the index is not available.<br /><b>[BASX0002]</b> is raised if the context item does not represent a database node.<br />
|}
|-
| valign='top' width='90' | '''Signatures'''
|<code> <b>db:fulltext</b>($text as xs:string) as text()</code><br />
|-
| valign='top' | '''Summary'''
|-
| valign='top' | '''Errors'''
|<b>[BASX0001]</b> is raised if the index is not available.<br /><b>[BASX0002]</b> is raised if the context item does not represent a database node.<br />
|}
|-
| valign='top' width='90' | '''Signatures'''
|<code> <b>db:info</b>() as xs:string</code><br /><code> <b>db:info</b>($type as xs:string) as xs:string</code><br />
|-
| valign='top' | '''Summary'''
|-
| valign='top' | '''Errors'''
|<b>[BASX0001]</b> is raised if the specified index is not available.<br /><b>[BASX0002]</b> is raised if the context item does not represent a database node.<br />
|}
[[Category:XQuery]]