Repository Module

From BaseX Documentation
Revision as of 16:38, 8 April 2012 by CG (talk | contribs) (→‎Changelog)
Jump to navigation Jump to search

This XQuery Module contains 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.

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 (since Version 7.2.1) the name, suffixed with a hyphen and the package version.
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

Template:Mark

Signatures repo:list() as element(package)*
Summary Lists the names and versions of all currently installed packages.

Changelog

Version 7.2.1

  • Updated: repo:install: existing packages will be replaced
  • Updated: repo:delete: remove specific version of a package

Version 7.2

The module was introduced with Version 7.1.