Difference between revisions of "Repository Module"

From BaseX Documentation
Jump to navigation Jump to search
m (Text replace - "XQuery functions " to "XQuery Modules ")
Line 1: Line 1:
This module contains [[XQuery Modules]] for managing [http://expath.org/modules/pkg/ EXPath packages]. All functions are preceded by the <code>repo:</code> prefix which is linked to the namespace <code><nowiki>http://basex.org/modules/repo</nowiki></code>. You can read more about BaseX implementation of the EXPath Packaging API [[Packaging|here]].
+
This [[XQuery Modules|XQuery Module]] contains functions for managing [http://expath.org/modules/pkg/ EXPath packages]. All functions are preceded by the <code>repo:</code> prefix which is linked to the namespace <code><nowiki>http://basex.org/modules/repo</nowiki></code>. You can read more about BaseX implementation of the EXPath Packaging API [[Packaging|here]].
  
 
=Functions=
 
=Functions=

Revision as of 21:49, 31 March 2012

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 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

Template:Mark

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

Changelog

Version 7.2

  • Updated: repo:list() now returns nodes

The module was introduced with Version 7.1.