Changes

Jump to navigation Jump to search
18 bytes added ,  12:07, 30 January 2016
no edit summary
This article is part of the [[Getting Started]] Section.
It lists all database commands supported by BaseX.
 Commands can e.g. be executed from the [[Command-Line Options#BaseX_Standalone|Command Line]],as part of [[#Command Scripts|Scripts]], via the [[Clients]], [[REST]], the input field in the [[GUI]], and other ways. If the GUI is used, all commands that are triggered by the GUI itselfwill show up in the [[GUI#Visualizations|Info View]].The [[User_Management|Permission]] fields indicate whichrights are required by a user to perform a command in the client/server architecture.
=Basics=
==Command Scripts==
Multiple commands can be written down in a single line – separated by semicolons – or stored as put into a command script. : Database commands in both string and XML syntax can be placed in a text file and stored as file with the BaseX command script suffix {{Code|.bxs}}. If the path to a script file is passed on to BaseX on command-line, or if it is opened in the GUI editor, it will automatically be recognized and evaluated as such.
===String Syntax===
Lines starting with <code>#</code> are interpreted as comments and are skipped. The With the following script creates , a databaseis created, adds two documents are added to it , and performs a queryis performed:
<pre class="brush:xml">
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu