Changes

Jump to navigation Jump to search
120 bytes removed ,  18:31, 1 December 2023
m
Text replacement - "</syntaxhighlight>" to "</pre>"
STRIPWS = true
SERIALIZER = indent=yes
</syntaxhighlightpre>
…or add context parameters in the {{Code|web.xml}} file of your [[Web Application]]:
<param-value>indent=yes</param-value>
</context-param>
</syntaxhighlightpre>
In the GUI editor, a [[Shortcuts#Editor Shortcuts|shortcut]] and an icon were added to switch result indentation on and off.
declare boundary-space preserve;
<xml> </xml>
</syntaxhighlightpre>
==Value Resources==
'cities'
)
</syntaxhighlightpre>
…and use them as index later on:
for $country in ('Japan', 'Indonesia', 'Malaysia')
return $country || ': ' || string-join($cities?($country), ', ')
</syntaxhighlightpre>
==Backups==
declare variable $n external;
db:get('names-' || $n)
</syntaxhighlightpre>
After the query has been parsed, a user-specific value (e.g., {{Code|123}}) will be bound to {{Code|$n}}. The variable will be inlined by the compiler, and the argument of {{Function||db:get}} will be pre-evaluated to {{Code|names123}}. It is then easy for the lock detector to collect the name of the database that needs to read-locked before the query is eventually executed.
return insert node text { $pos } into $child
}
</syntaxhighlightpre>
==Key-Value Store==
)
return store:put('emails', $email)
</syntaxhighlightpre>
; Retrieve data:
let $name := 'Richard David James'
return store:get('email')($name)
</syntaxhighlightpre>
The store is persistent: Its contents are written to disk if BaseX is shut down, and retrieved again after a restart.
<!-- now -->
<databases xmlns="http://basex.org/rest"/>
</syntaxhighlightpre>
When listing the resources of a database, {{Code|dir}} elements are returned for resources that are located in subdirectories. See [[REST]] for more details.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu