Repository Module
This module contains XQuery functions for managing EXPath packages. All functions are preceded by the repo:
prefix which is linked to the namespace http://basex.org/modules/repo
. You can read more about BaseX implementation of the EXPath Packaging API here.
Contents
Functions
repo:install
Signatures | repo:install($path as xs:string) as empty-sequence() |
Summary | Installs a package. The parameter $path indicates the path to the package. |
Errors | PACK0001 is raised if the package does not exist. PACK0002 is raised if the package is already installed. PACK0003 is raised if the package to be installed requires a package which is still not installed. PACK0004 is raised if the package descriptor is invalid. PACK0005 is raised if the module contained in the package to be installed is already installed as part of another package. PACK0006 is raised if the package cannot be parsed. PACK0009 is raised if the package version is not supported. PACK0010 is raised if the package contains an invalid JAR descriptor. PACK0011 is raised if the package contains a JAR descriptor but it cannot be read. |
repo:delete
Signatures | repo:delete($pkg as xs:string) as empty-sequence() |
Summary | Deletes a package. The parameter $pkg indicates either the package name as specified in the package descriptor or the name of the directory where the package is installed. |
Errors | PACK0007 is raised if the package cannot be deleted. PACK0008 is raised if another package depends on the package to be deleted. |
repo:list
Signatures | repo:list() as element(package)* |
Summary | Lists the names and versions of all currently installed packages. |
Recent Changes
Version 7.1.2
- Updated:
repo:list()
now returns nodes
Recent Changes
The module was introduced with Version 7.1.