Changes

Jump to navigation Jump to search
193 bytes added ,  17:58, 1 March 2016
no edit summary
| '''Summary'''
|Prepares the supplied {{Code|$query}} string for asynchronous execution and returns a query id. The query will be queued as described in the article on [[Transaction Management]], and the result will be cached in main-memory until it is fetched via [[#async:result|async:result]], or until {{Option|ASYNCTIMEOUT}} is exceeded.<br/>Variables and context items can be declared via {{Code|$bindings}} (see [[XQuery Module#xquery:eval|xquery:eval]] for more details). The {{Code|$options}} parameter contains evaluation options:
* {{Code|cache}}: indicates if the query result will be cached or ignored (default: <code>true</code>). If the query result is ignored, the query id will immediately get invalidated after query execution, too.
* {{Code|base-uri}}: set [https://www.w3.org/TR/xquery-31/#dt-static-base-uri base-uri property] for the query. This URI will be used when resolving relative URIs by functions such as {{Code|fn:doc}} (default: ''empty string'').
|-
|}
==async:is-runningfinished==
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|async:is-runningfinished|$id as xs:string|xs:boolean}}
|-
| '''Summary'''
|Indicates if the evaluation of a query with the specified query {{Code|$id}} is currently being evaluatedhas finished. If <code>false</code> is returned, the query is still running. An error will be raised if the query result can be was not cached or has already been retrieved.
|-
| '''Errors'''
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu