XQuery Function Documentation

Search and Browse

packages:get-local

packages:get-local($type as xs:string) as item()*

returns a list of locally installed apps of a given type ('application' or 'library'). It is checked wether the calling user has to the given package.

Parameters:
$type $type
Returns:
item()*

packages:get-local-applications

packages:get-local-applications() as item()*

fetch the list of locally installed applications

Returns:
item()*

packages:get-local-libraries

packages:get-local-libraries() as item()*

fetch the list of locally installed libraries

Returns:
item()*

packages:get-local-packages

packages:get-local-packages() as item()*

fetch the complete list of locally installed applications and libaries

Returns:
item()*

packages:get-package-meta

packages:get-package-meta($app as xs:string, $name as xs:string) as item()*

Parameters:
$app $app
$name $name
Returns:
item()*

packages:get-remote

packages:get-remote() as item()*

fetches all remote packages from public repo and filters out packages that are already in the list of local packages. In case there's a version that is newer in the repository list it will be marked with the attriburtes 'available' and 'installed'.

Returns:
item()*

packages:get-repo-locations

packages:get-repo-locations() as item()*

Returns:
item()*

packages:get-version

packages:get-version() as item()*

Returns:
item()*

packages:installed-apps

packages:installed-apps($type as xs:string) as element()*

Parameters:
$type $type
Returns:
element()*

packages:is-newer

packages:is-newer($available as xs:string, $installed as xs:string) as xs:boolean

Parameters:
$available $available
$installed $installed
Returns:
xs:boolean

packages:packages-as-json

packages:packages-as-json($packages as element()*) as item()*

Parameters:
$packages* $packages*
Returns:
item()*

packages:public-repo-contents

packages:public-repo-contents($installed as element()*) as item()*

Parameters:
$installed* $installed*
Returns:
item()*

packages:required-version

packages:required-version($required as element()) as item()*

Parameters:
$required $required
Returns:
item()*

packages:scan-repo

packages:scan-repo($callback as function(*)) as item()*

Parameters:
$callback $callback
Returns:
item()*