Changes

Jump to navigation Jump to search
189 bytes removed ,  12:46, 2 July 2020
m
Text replacement - "[http://files.basex.org/" to "[https://files.basex.org/"
This page is part of the [[Getting Started]] Section.
BaseX offers a It introduces you to the standalone mode in which all [[Commands|database commands]] can be executed from the command -line or console.The article on the [[Database Server]] provides numerous examples for running commands in the standalone modeof BaseX.(Note that the standalone mode does ''not'' interact with the client/server architecture.)
=Startup=
==CommandThe command-Line Client==line client can be started as follows:
The * Run one of the {{Code|basex}} or {{Code|basex.bat}} scripts.* If you have installed BaseX on ''Windows'', click on the '''BaseX Standalone''' icon. Various [[Command-Line_Options#Standalone|command-line client options]] are available to simplify batch processing. The [[Start_Scripts|start script]] can be started as follows:adjusted for individual purposes (e.g. if the default memory limit is too restrictive).
* Run one of Please note that the {{Code|[[Start_Scripts#Linuxstandalone client must not be used if you perform parallel (concurrent) read and write operations on your databases.2FMac:_basex|basex]]}} or {{Code|See [[Start ScriptsStartup#Windows: basex.batConcurrent Operations|basex.batConcurrent Operations]]}} scripts.* Execute the following command: {{Code|java -cp BaseX.jar org.basex.BaseX}}* On ''Windows'': Double click on the '''BaseX (Standalone)''' iconfor more details.
Various [[Command-Line_Options#Standalone|command-line options]] are available to simplify batch processing. The [[Start_Scripts#Standalone|start script]] can be adjusted for individual purposed (e.g. if the default memory limit is too restrictive).=Operations=
==Create a Database==
* To create a database you need an XML document, e.g. [httphttps://files.basex.org/xml/factbook.xml factbook.xml].
* Save this document to your working directory.
* Type in the following command to create and open the database:
Depending on your [[Configuration]], the location of your home folder varies. For example, on a Mac it's <code>/Users/John</code>, if your name is John.
==Execute a Query==
The [[Commands#XQUERY|XQUERY]] command lets you run a query.
</code>
==Database Commands==
* The following command lists all databases than can be opened by the currently logged in user:
</code>
==Multiple Resources==
One database can contain not only a single, but millions of documents. All documents can have a different structure.
</code>
==Backup and Restore==
* To backup your database, type:
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu