Changes

Jump to navigation Jump to search
387 bytes removed ,  20:44, 22 March 2012
no edit summary
This page is part of the [[Getting Started]] Section.
BaseX offers a standalone (embedded) console mode from which all [[Commands|database commands]] can be executed.
The article on the [[Database Server]] provides a good introduction on how to run numerous examples for running commands in the console mode.
==Startup==
==Working with the BaseX Console==
<p>After the BaseX Console has been started, the <code>HELP</code> command can be used toto list all [[Commands|database commands]]. Several Multiple commands can be separated by semicolons.</p> <p>
To evaluate commands without entering the console mode, you can use the
<code>-c</code> option on the command line:
</p>
<pre>
basex -Vc "CREATE DB input input.xml<example/>; XQUERY /"
Database 'input' created in 53124.64 95 ms.<html> <!-- Header --> <head id="0"> <title>XML</title> </head> <!-- Body --> <body id="1" bgcolor="#FFFFFF" text="#000000" link="#0000CC"> <h1>Databases &amp; XML</h1> <div align="right"> <b>Assignments</b> <ul> <li>Exercise 1</li> <li>Exercise 2</li> </ul> </div> </body> <?pi bogus?><example/html>
Query: /
Result: root()
Parsing: 0.19 42 msCompiling: 9.27 3 msEvaluating: 0.33 35 msPrinting: 35.08 53 msTotal Time: 1215.88 62 msResultsHit(s): 1 Item
Updated: 0 Items
Printed: 375 10 BytesMemory: 5834 KB
Query executed in 1315.25 62 ms.
</pre>
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu