|
* <code>db:info("DB", "FULLTEXT")</code> returns information about the full-text index in the database <code>DB</code>.
|}
==db:get==
{|
|-
| valign='top' width='90' | '''Signatures'''
|<code><b>db:get</b>($db as xs:string, $path as xs:string) as xs:base64Binary</code>
|-
| valign='top' | '''Summary'''
|Retrieves the binary resource specified by <code>$path</code> in the <code>xs:basex64Binary</code> format. Introduced with <font color='red'>Version 6.8</font>.
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#Functions Errors (FOAR, FOCA, FOCH, FODC, FODF, FODT, FOER, FOFD, FONS, FORG, FORX, FOTY)|FODC0002]]</b> is raised if the addressed resource is not found or cannot be retrieved.
|-
| valign='top' | '''Examples'''
|
* <code>db:get("DB", "music/01.mp3")</code> returns the specified audio file.
|}
==db:put==
{|
|-
| valign='top' width='90' | '''Signatures'''
|<code><b>db:put</b>($db as xs:string, $path as xs:string, $data as item()) as empty-sequence()</code>
|-
| valign='top' | '''Summary'''
|Stores a binary resource specified by <code>$data</code> at the location specified by <code>$path</code>. Introduced with <font color='red'>Version 6.8</font>.
|-
| valign='top' | '''Errors'''
|<b>[[XQuery Errors#Update Errors (FOUP, XUDY, XUST, XUTY)|FOUP0002]]</b> is raised if the resource cannot be stored at the specified location.
|-
| valign='top' | '''Examples'''
|
* <code>db:put("DB", "video/sample.mov", file:read-binary('video.mov'))</code> stores the addressed video file at the specified location.
|}