Changes

Jump to navigation Jump to search
11 bytes removed ,  22:01, 9 June 2014
no edit summary
* as map, which contains all key/value pairs:
<pre class="brush:xml">
map { "method" := "xml", "cdata-section-elements" := "div", ... }
</pre>
|-
* or as map, which contains all key/value pairs:
<pre class="brush:xquery">
map { "textindex" := true(), "maxcats" = : 128 }
</pre>
|-
* {{Code|db:create("DB", <a/>, "doc.xml")}} creates the database {{Code|DB}} and adds the document with content {{Code|&lt;a/&gt;}} under the name {{Code|doc.xml}}.
* {{Code|db:create("DB", "/home/dir/", "docs/dir")}} creates the database {{Code|DB}} and adds the documents in {{Code|/home/dir}} to the database under the path {{Code|docs/dir}}.
* <code>db:create("DB", file:list('.'), map { 'ftindex' := true() })</code> adds all files of the current working directory to a new database and creates a full-text index.
|}
|
* {{Code|db:optimize("DB")}} optimizes the database structures of the database {{Code|DB}}.
* <code>db:optimize("DB", true(), map { 'ftindex' := true() })</code> optimizes all database structures of the database {{Code|DB}} and creates a full-text index.
|}
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu