Changes

Jump to navigation Jump to search
21 bytes added ,  13:40, 17 January 2011
no edit summary
databases with single XML documents and databases with a bunch of XML files, called ''Collections''.
===Creation of a database===
You can create a database either within the GUI or in the console version of BaseX.
*[[GUI]]: Go to ''Database/'' → ''New '' and then press Browse to choose a file and press OK
*[[Console]]: enter <code>basex -c "create db dbname /path/to/file"</code><br/>
==Collection==
===Creation of a collection===
You can create a collection either within the GUI or in the console version of BaseX.
*[[GUI]]: Go to ''Database/'' → ''New '' and then press Browse to choose a directory and press OK
*[[Console]]: enter <code>basex -c "create db dbname /path/to/collection"</code><br/>
Console:
* [[Commands#Create|Create]] an empty database: <code>create db CREATE DB example</code> * [[Commands#Add|Add]] a document: <code>add ADD example.xml</code> * [[Commands#Delete|Delete]] a document: <code>delete DELETE example.xml</code>
GUI:
In the GUI you can execute all above operations in the Database menu.
For more information see our [[BaseX & Collections|collection tutorial]].
===Access documents in collections===
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu