Changes

Jump to navigation Jump to search
48 bytes removed ,  18:36, 1 December 2023
m
Text replacement - "</syntaxhighlight>" to "</pre>"
(: Create database with same name :)
return db:create('conflict', $docs, $docs ! db:path(.))
</syntaxhighlightpre>
The read-only query cannot be processed, because the <code>conflict</code> database is currently write-locked by the main query. See [[Transaction Management]] for more background information.
client:connect('basex.server.org', 8080, 'admin', '...') !
client:execute(., 'create database TEST')
</syntaxhighlightpre>
|}
let $c := client:connect('localhost', 1984, 'admin', '...')
return client:query($c, "declare variable $n external; $n * 2", map { 'n': 123 })
</syntaxhighlightpre>
The following query performs a query on a first server, the results of which are passed on to a second server:
<pre lang='xquery'>
for $it in client:query($c1, '1 to 10')
return client:query($c2, $it || '* 2')
</syntaxhighlightpre>
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu