Changes

Jump to navigation Jump to search
244 bytes removed ,  23:40, 25 April 2012
no edit summary
This page is part of the [[Getting Started]] Section.
In BaseX, a single database is a pretty light-weight structure and can be comparedwith a ''collection''. It contains an arbitrary number of '''resources''',addressed by their unique database path. Since {{Version|7.0}}, resources Resources caneither be '''XML documents''' or '''raw files''' (binaries). Sets of XML documentsare also called collections. Some information on [[Binary Data|binary data]] can be found onan extra page.
=Create/Drop DatabaseDatabases=
New databases can either be created via commands, in the GUI, on command line, or using with any of our [[APIs]]. XML documents can be If some input is specified along with the create operation, which it will be added to the database in a bulk operation:
* [[Startup#BaseX Standalone|Console]]: enter <code>basex -c "CREATE DB dbname db /path/to/resources"</code>will add initial documents to a database
* [[Startup#BaseX GUI|GUI]]: Go to ''Database'' → ''New'', press ''Browse'' to choose an initial file or directory, and press ''OK''
Database must follow the [[Valid Names|valid names constraints]].
Various [[parsers]] can be chosen to influence the database creation, or to convert different formats to XML.
 
Existing databases can eventually be dropped again:
 
* [[Startup#BaseX Standalone|Console]]: enter <code>basex -c "DROP DB dbname"</code>.
* [[Startup#BaseX GUI|GUI]]: Go to ''Database'' → ''Manage'' and choose the database to be dropped
 
Database must follow the [[Valid Names|valid names constraints]].
=Access Resources=
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu