Changes

Jump to navigation Jump to search
420 bytes added ,  12:47, 9 November 2013
===Original Files===
In BaseX, all updates are performed on database nodes or in main memory. Update By default, update operations thus never affect the original input file. You can, however, use the [[Commands#EXPORT|EXPORT]] command or the fn:put() function The following solutions exist to create an updated write XML file.documents and binary resources to disk:
Moreover changes in your database are * The [[Commands#EXPORT|EXPORT]] command can be used write all resources of a databases to disk.* Functions like <code>[[#fn:put|fn:put]]</code> or <code>[[File Module#file:write|file:write]]</code> can be used to write single XML documents to disk. With <code>[[File Module#file:write-binary|file:write-binary]]</code>, you can write binary resources.* Updates on main-memory instances of files that have been retrieved via {{Code|fn:doc}} or {{Code|fn:collection}} will be propagated back to disk when the original input file if the database option <code>[[Options#WRITEBACK|WRITEBACK]]</code> option is turned on. This option can also be activated on [[Command-Line Options#BaseX Standalone|command line]] via <code>-u</code>. Make sure you back up the original data documents before running your queries.
===Indexes===
By default, index Index structures are discarded after an updateoperation, and their maintenance operations when [[Options#UPDINDEX|UPDINDEX]] is turned off (which is left to the userdefault).See more More details are found in the article on [[IndexesIndex#Updates|Indexes: UpdatesIndexing]].
==Error Messages==
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu