Changes

Jump to navigation Jump to search
No change in size ,  15:12, 26 May 2012
m
Text replace - "{{Mono|" to "{{Code|"
|
* <code>CREATE DATABASE input</code><br/>creates an empty database <code>input</code>.
* <code>CREATE DATABASE xmark http://files.basex.org/xml/xmark.xml</code><br/>creates the database <code>xmark</code>, containing a single initial document called {{MonoCode|xmark.xml}}.
* <code>CREATE DATABASE coll /path/to/input</code><br/>creates the database <code>coll</code> with all documents found in the <code>input</code> directory.
* <code>SET INTPARSE false; CREATE DATABASE input input.xml</code><br/>creates a database <code>input</code> with {{MonoCode|input.xml}} as initial document, which will be parsed with Java's [[Parsers#XML Parsers|default XML parser]].
|}
|-
| '''Summary'''
|This command combines [[#OPEN|OPEN]] and [[#CREATE DATABASE|CREATE DATABASE]]: if a database with the name {{MonoCode|[input]}} exists, it is opened. Otherwise, it creates a new database and stores the specified input as initial content.
|-
| '''Errors'''
==CREATE INDEX==
{{Mark|Updated in Version 7.2:}} {{MonoCode|PATH}} removed as argument; path summary is now updated by [[#OPTIMIZE|OPTIMIZE]] command
{|
|-
==DROP INDEX==
{{Mark|Updated in Version 7.2:}} {{MonoCode|PATH}} removed as argument; path summary is now always available
{|
|-
|-
| '''Summary'''
|Creates a zipped backup of the database specified by {{MonoCode|[name]}}. The backup file will be suffixed with the current timestamp and stored in the database directory. The [[#Glob Syntax|Glob Syntax]] can be used to address more than one database.
|-
| '''Errors'''
|-
| '''Summary'''
|Optimizes the index structures, meta data and statistics of the currently opened database. If the {{MonoCode|ALL}} flag is specified, the internal database structures are completely rebuilt; this often leads to a reduction of the total database size.
|-
| '''Errors'''
==GET==
{{Mark|Updated in Version 7.2.1:}} permission changed from {{MonoCode|READ}} to {{MonoCode|NONE}}
{|
|-
|-
| '''Summary'''
|Returns the current value of the [[Options|Option]] specified via {{MonoCode|[key]}}.
|-
| '''Errors'''
==SET==
{{Mark|Updated in Version 7.2.1:}} permission changed from {{MonoCode|READ}} to {{MonoCode|NONE}}
{|
|-
==Shortcuts==
In all commands, the {{MonoCode|DATABASE}} keyword can be replaced by the shortcut {{MonoCode|DB}}.
=Changelog=
===Version 7.2.1===
* Updated: permissions for <code>[[#GET|GET]]</code> and <code>[[#SET|SET]]</code> changed from {{MonoCode|READ}} to {{MonoCode|NONE}}
===Version 7.2===
* Updated: <code>[[#CREATE INDEX|CREATE INDEX]]</code>, <code>[[#DROP INDEX|DROP INDEX]]</code> ({{MonoCode|PATH}} argument removed. Path summary is always available now and updated with [[#OPTIMIZE|OPTIMIZE]])
* Updated: permissions for <code>[[#REPO DELETE|REPO DELETE]]</code>, <code>[[#REPO INSTALL|REPO INSTALL]]</code> and <code>[[#REPO LIST|REPO LIST]]</code>
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu