Changes

Jump to navigation Jump to search
125 bytes removed ,  20:59, 18 July 2022
no edit summary
==Binary Files==
The <code>[[Commands#RETRIEVE{{Command|RETRIEVE]]</code> }} command and the {{Function|Database|db:get-binary}} function can be used to return files in their native byte representation.
If the API you use does not support binary output (this is e.g. the case for various [[Clients|Client]] language bindings), you need to convert your binary data to its string representation before returning it to the client:
Once you have created a database, additional commands exist to modify its contents:
* XML documents can be added with the <code>[[Commands#ADD{{Command|ADD]]</code> }} command.* Raw files are added with <code>[[Commands#STORE{{Command|STORE]]</code>}}.* Existing resources can be replaced with the <code>[[Commands#REPLACE{{Command|REPLACE]]</code> }} command.* Resources can be deleted via <code>[[Commands#DELETE{{Command|DELETE]]</code>}}.
The {{Option|AUTOFLUSH}} option can be turned off before ''bulk operations'' (i.e. before a large number of new resources is added to the database).
All resources stored in a database can be ''exported'', i.e., written back to disk. This can be done in several ways:
* Commands: <code>[[Commands#EXPORT{{Command|EXPORT]]</code> }} writes all resources to the specified target directory
* 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
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu