Changes

Jump to navigation Jump to search
202 bytes added ,  23:50, 25 April 2012
no edit summary
an extra page.
==Create/Drop Database==
New databases can either be created in the GUI, on command line, or using any of our [[APIs]]. XML documents can be specified along with the create operation, which will be added to the database in a bulk operation:
Database must follow the [[Valid Names|valid names constraints]].
==Manage Resources==
Once you have created a database, additional commands exist to modify its contents:
Last but not least, XML documents can also be added via the GUI and the ''Database'' menu.
==Access Resources==
Stored resources and external documents can be accessed in different ways:
====XML Documents====
{{Mark|Updated with Version 7.2.1:}}
The {{Mono|fn:document-uri()}} and {{Mono|fn:base-uri()}} functions returns paths that can be reused as arguments for the {{Mono|fn:doc()}} and {{Mono|fn:collection()}} functions.
====Raw Files====
* XQuery: <code>db:retrieve("dbname", "path/to/docs")</code> returns raw files in their Base64 representation. By choosing <code>"method=raw"</code> as [[Serialization|Serialization Option]], the data is returned in its original byte representation:
* Commands: <code>[[Commands#RETRIEVE|RETRIEVE]]</code> returns raw files without modifications.
====HTTP Services====
* With [[REST]] and [[WebDAV]], all database resources can be requested in a uniform way, no matter if they are well-formed XML documents or binary files.
==Export Data==
All resources stored in a database can be ''exported'', i.e., written back to disk. This can be done in several ways:
* GUI: Go to ''Database'' → ''Export'', choose the target directory and press ''OK''
* WebDAV: Locate the database directory (or a sub-directory of it) and copy all contents to another location
 
=Changelog=
 
===Version 7.2.1===
 
* Updated: {{Mono|fn:document-uri()}} and {{Mono|fn:base-uri()}} now return strings that can be reused with {{Mono|fn:doc()}}, {{Mono|fn:collection()}} to reopen the original document.
[[Category:Beginner]]
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu