Changes

Jump to navigation Jump to search
181 bytes removed ,  14:04, 20 July 2022
|-
| '''Summary'''
|By default, resources specified via [[Databases#XML Documents{{Code|fn:doc]] }} and [[Databases#XML Documents{{Code|fn:collection]] }} are looked up both in the database and in the file system. If you always use {{Function|Database|db:preget}} to access databases, it is recommendable to disable this option:
* No locks will be created for the two functions (see [[Transaction Management#Limitations|limitations of database locking]] for more details).
* Access to local and external resources will be faster, as the database lookup will be skipped.
|-
| '''Summary'''
|If this option is turned on, paths specified in the [[Databases#XML Documents{{Code|fn:doc]] }} and [[Databases#XML Documents{{Code|fn:collection]] }} functions will first be resolved against a database that has been opened in the global context outside the query (e.g. by the {{Command|OPEN}} command). If the path does not match any existing resources, it will be resolved as described in the article on [[Databases#Access Resources|accessing database resources]].
|}
|-
| '''Summary'''
|By activating this option, database instances will be created with the XQuery functions [[Databases#XML Documents{{Code|fn:doc]] }} and [[Databases#XML Documents{{Code|fn:collection]]}}.
|}
|-
| '''Summary'''
|Parameters for [[Serialization|serializing]] query results. The string must comply with the following rules:* Variable names and values must be are separated by equality signs.* Multiple variables must be are delimited by commas.* Commas in values must be duplicatedif they appear as literals in values.
The option can also be used on [[Command-Line Options#BaseX Standalone|command line]] with the flag <code>-s</code>.
|-
| '''Examples'''
|
* <code>indent=noyes</code> : disables enables automatic indentation of XML nodes. This is usually recommended if whitespaces have been stripped from a good choice when working with [[Full-Text#Mixed Contentdocument (see {{Options|Mixed-Content Data]]STRIPWS}}).
* <code>encoding=US-ASCII,omit-xml-declaration=no</code> : sets the encoding to {{Code|US-ASCII}} and prints the XML declaration.
* <code>item-separator=,,</code> : separates serialized items by a single comma.
|-
| '''Summary'''
|Propagates updates on main-memory instances of files that have been retrieved via [[Databases#XML Documents{{Code|fn:doc]] }} and [[Databases#XML Documents{{Code|fn:collection]] }} back to disk:
* This option can also be activated on [[Command-Line Options#BaseX Standalone|command line]] via <code>-u</code>.
* Please take in mind that no backup will be created from your original files.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu