Changes

Jump to navigation Jump to search
1,137 bytes added ,  01:49, 6 May 2011
no edit summary
|-
| valign='top' | '''Summary'''
|Adds the files, directory or XML string specified by <code>[input]</code> to the database, using an optional <code>[target]</code> path and an optional file <code>[name]</code>.<br/>The input may either be a single XML document, a directory, a remote URL or a plain XML string.The optional name is ignored if the input is a directory.
|}
==ALTERDATABASE==
{|
|-
| valign='top' width='90' | '''Signature'''
|<code>ALTER DATABASE [USER&#124;DATABASEname] [...newname]</code>
|-
| valign='top' | '''Summary'''
|Alters the password of a user, or the <code>[name ]</code> of a database:to <code>[newname]</code>.* |}==ALTER USER=={||-| valign='top' width='90' | '''Signature'''|<code>ALTER USER [name] ([password])</code>:: |-| valign='top' | '''Summary'''|Alters the <code>[password]</code> of the user specified with <code>[name]</code>. If no password is specified in the console mode, it is requested via standard input.* <code>DATABASE [name] [newname]</code>: Alters the <code>[name]</code> of a database to <code>[newname]</code>.
|}
==BACKUP==
|-
| valign='top' | '''Summary'''
|Creates a copy of the database specified by <code>[name]</code>.|}==CREATE DATABASE=={||-| valign='top' width='90' | '''Signature'''|<code>CREATE DATABASE [name] ([input])</code>|-| valign='top' | '''Summary'''|Creates the database <code>[name]</code> with an optional <code>[input]</code>.<br />The input may either be a single XML document, a directory, a remote URL or a plain XML string.|}==CREATE INDEX=={||-| valign='top' width='90' | '''Signature'''|<code>CREATE INDEX [TEXT&#124;ATTRIBUTE&#124;FULLTEXT&#124;PATH]</code>|-| valign='top' | '''Summary'''|Creates the specified database index.
|}
==CREATEUSER==
{|
|-
| valign='top' width='90' | '''Signature'''
|<code>CREATE USER [DATABASE&#124;INDEX&#124;USERname] ([...password])</code>:
|-
| valign='top' | '''Summary'''
|Creates a new database, index or user:* <code>DATABASE [name] ([input])</code>:: Creates with the database specified <code>[name]</code> with an optional <code>[input]</code>.: The input may either be a single XML document, a directory, a remote URL or a plain XML string.* and <code>INDEX [TEXT&#124;ATTRIBUTE&#124;FULLTEXT&#124;PATH]</code>:: Creates the specified index* <code>USER [name] ([password])</code>:: Creates a user with the specified [name] and [password]. If no password is specified in the console mode, it is requested via standard input.
|}
==CS==
|Deletes all documents from the currently opened database that start with the specified <code>[path]</code>.
|}
==DROPBACKUP=={||-| valign='top' width='90' | '''Signature'''|<code>DROP BACKUP [name]</code>|-| valign='top' | '''Summary'''|Drops all backups for the database with the specified <code>[name]</code>.|}==DROP DATABASE=={||-| valign='top' width='90' | '''Signature'''|<code>DROP DATABASE [name]</code>|-| valign='top' | '''Summary'''|Drops the database with the specified <code>[name]</code>.|}==DROP INDEX=={||-| valign='top' width='90' | '''Signature'''|<code>DROP INDEX [PATH&#124;TEXT&#124;ATTRIBUTE&#124;FULLTEXT]</code>|-| valign='top' | '''Summary'''|Drops the specified database index.|}==DROP USER==
{|
|-
| valign='top' width='90' | '''Signature'''
|<code>DROP USER [DATABASE&#124;INDEX&#124;USERname] (ON [...database])</code>:
|-
| valign='top' | '''Summary'''
|Drops a database, index or user:* <code>DATABASE [name]</code>:: Drops the database with the specified <code>[name]</code>.* <code>INDEX [PATH&#124;TEXT&#124;ATTRIBUTE&#124;FULLTEXT]</code>:: Drops the specified index.* <code>USER [name] (ON [database])</code>:: Drops the user with the specified <code>[name]</code>. If a <code>[database]</code> is specified, the user is only dropped locally.* <code>BACKUP [name]</code>:: Drops all backups for the database with the specified <code>[name]</code>.
|}
==EXIT==
| valign='top' | '''Summary'''
|Builds and runs a query for the specified <code>[keywords]</code>. The following modifiers can be used to further limit search:
:<code>= : </code> looks for exact text nodes:<br/><code>@= : </code> looks for exact attributes:<br/><code>@ : </code> looks for attributes
|}
==GET==
|-
| valign='top' width='90' | '''Signature'''
|<code>INFO ([</code>|-| valign='top' | '''Summary'''|Shows global information.|}==INFO DATABASE=={||-| valign='top' width='90' | '''Signature'''|<code>INFO DATABASE&#124;</code>|-| valign='top' | '''Summary'''|Shows information on the currently opened database.|}==INFO INDEX=={||-| valign='top' width='90' | '''Signature'''|<code>INFO INDEX&#124;[name]</code>|-| valign='top' | '''Summary'''|Shows information on the existing index structures. If <code>[name]</code> is specified, information on the specified index is shown.|}==INFO STORAGE=={||-| valign='top' width='90' | '''Signature'''|<code>INFO STORAGE [start end] | [query])</code>
|-
| valign='top' | '''Summary'''
|Shows information on the currently opened database:* <code>no argument</code>: Shows global information on the DBMS* <code>DATABASE</code>: Shows general database information* <code>INDEX</code>: Shows information on the existing index structures* <code>STORAGE [start end] | [query]</code>: Shows the internal main table of the internal storagecurrently opened database.
|}
==KILL==
|-
| valign='top' | '''Summary'''
|Restores a database with the specified <code>[name]</code>. The name may include the timestamp of the backup file.
|}
==RUN==
|Sets an <code>[option]</code> to the specified <code>[value]</code>. A list of all options is [[Options|available here]].
|}
==SHOWBACKUPS=={||-| valign='top' width='90' | '''Signature'''|<code>SHOW BACKUPS</code>|-| valign='top' | '''Summary'''|Shows all database backups.|}==SHOW DATABASES=={||-| valign='top' width='90' | '''Signature'''|<code>SHOW DATABASES</code>|-| valign='top' | '''Summary'''|Shows all databases that are opened in the current server instance.|}==SHOW SESSIONS=={||-| valign='top' width='90' | '''Signature'''|<code>SHOW SESSIONS</code>|-| valign='top' | '''Summary'''|Shows all sessions that are connected to the current server instance.|}==SHOW USERS==
{|
|-
| valign='top' width='90' | '''Signature'''
|<code>SHOW USERS (ON [DATABASES&#124;SESSIONS&#124;USERS&#124;BACKUPSdatabase])</code>
|-
| valign='top' | '''Summary'''
|Shows server information:* <code>DATABASES</code>: Shows all users that are registered in the currently opened databases.* <code>SESSIONS</code>: Shows the currently active database sessions.* <code>USERS (ON [database])</code>: Shows all known users. If a <code>[database]</code> is specified, local users are shown.* <code>BACKUPS</code>: Shows all database backups.
|}
==XQUERY==
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu