Repository Functions
This module contains functions for installing, listing and deleting modules contained in the Repository.
All functions and errors in this module are assigned to the http://basex.org/modules/repo
namespace, which is statically bound to the repo
prefix.
Signature | repo:install(
$source as xs:string
) as empty-sequence() |
---|
Summary | Retrieves and installs a package from the given $source location. Existing packages are replaced. |
---|
Errors | descriptor | The package descriptor is invalid. | installed | The module contained in the package to be installed is already installed as part of another package. | not-found | A package does not exist. | parse | An error occurred while parsing the package. | version | The package version is not supported. |
|
---|
Signature | repo:delete(
$package as xs:string
) as empty-sequence() |
---|
Summary | Deletes a $package . The argument contains the package name, optionally suffixed with a dash and the package version. |
---|
Errors | delete | The package cannot be deleted because of dependencies, or because files are missing. | not-found | A package does not exist. |
|
---|
Signature | repo:list() as element(package)* |
---|
Summary | Lists the names and versions of all currently installed packages. |
---|
Code | Description |
---|
delete | The package cannot be deleted because of dependencies, or because files are missing. |
descriptor | The package descriptor is invalid. |
installed | The module contained in the package to be installed is already installed as part of another package. |
not-found | A package does not exist. |
parse | An error occurred while parsing the package. |
version | The package version is not supported. |
Version 9.0- Updated: error codes updated; errors now use the module namespace
Version 7.2.1- Updated:
repo:install
: existing packages will be replaced - Updated:
repo:delete
: remove specific version of a package
Version 7.2Version 7.1
⚡Generated with XQuery