Changes

Jump to navigation Jump to search
981 bytes removed ,  14:19, 20 July 2022
no edit summary
=Conventions=
All functions and errors in this module are assigned to the {{Code|<code><nowiki>http://basex.org/modules/repo}} </nowiki></code> namespace, which is statically bound to the {{Code|repo}} prefix.<br/>All errors are assigned to the {{Code|http://basex.org/errors}} namespace, which is statically bound to the {{Code|bxerr}} prefix.
=Functions=
==repo:install==
 {|width='100%'|-valign="top"| width='90120' | '''Signatures'''|{{Func|repo:install|$path uri as xs:string|empty-sequence()}}<br />|-valign="top"
| '''Summary'''
|Installs Retrieves and installs a package, or (since {{Version|7.2.1}}), replaces an existing package. The parameter from the given {{Code|$pathuri}} indicates the path to the package.<br />Existing packages are replaced.|-valign="top"
| '''Errors'''
|{{Error|BXRE0001not-found|XQuery Errors#Packaging Errors}} the a package does not exist.<br />{{Error|BXRE0002|XQuery Errors#Packaging Errors}} a package uses an invalid namespace URI.<br />{{Error|BXRE0003descriptor|XQuery Errors#Packaging Errors}} the package to be installed requires a package which is still not installed.<br />{{Error|BXRE0004|XQuery Errors#Packaging Errors}} the package descriptor is invalid.<br />{{Error|BXRE0005installed|XQuery Errors#Packaging Errors}} the module contained in the package to be installed is already installed as part of another package.<br />{{Error|BXRE0006parse|XQuery Errors#Packaging Errors}} an error occurred while parsing the package cannot be parsed.<br />{{Error|BXRE0009version|XQuery Errors#Packaging Errors}} the package version is not supported.<br />{{Error|BXRE0010|XQuery Errors#Packaging Errors}} the package contains an invalid JAR descriptor.<br />{{Error|BXRE0011|XQuery Errors#Packaging Errors}} the package contains a JAR descriptor but it cannot be read.<br />
|}
==repo:delete==
 {|width='100%'|-valign="top"| width='90120' | '''Signatures'''|{{Func|repo:delete|$pkg package as xs:string|empty-sequence()}}<br />|-valign="top"
| '''Summary'''
|Deletes a package. The parameter {{Code|$pkgpackage}} indicates either the package name as specified in . The argument contains the package descriptor or (since {{Version|7.2.1}}) the name, optionally suffixed with a hyphen dash and the package version.<br />|-valign="top"
| '''Errors'''
|{{Error|BXRE0007not-found|XQuery Errors#Packaging Errors}} the a package cannot be deleteddoes not exist.<br />{{Error|BXRE0008delete|XQuery Errors#Packaging Errors}} another package depends on the package to cannot be deleted.<br />
|}
==repo:list==
{{Mark|Updated in Version 7.2:}} {|width='100%'|-valign="top"| width='90120' | '''Signatures'''
|{{Func|repo:list||element(package)*}}<br />
|-valign="top"
| '''Summary'''
|Lists the names and versions of all currently installed packages.<br />
{| class="wikitable" width="100%"
! width="5%110"|Code! width="95%"|Description|-valign="top"|{{Code|BXRE0001delete}}|The addressed package does not exist.|-|{{Code|BXRE0002}}|A package uses an invalid namespace URI.|-|{{Code|BXRE0003}}|The package to cannot be installed requires a package which is not installed yetdeleted because of dependencies, or because files are missing.|-valign="top"|{{Code|BXRE0004descriptor}}
|The package descriptor is invalid.
|-valign="top"|{{Code|BXRE0005installed}}
|The module contained in the package to be installed is already installed as part of another package.
|-valign="top"|{{Code|BXRE0006}}|The package cannot be parsed.|not-|{{Code|BXRE0007found}}|The A package cannot be deleteddoes not exist.|-valign="top"|{{Code|BXRE0008parse}}|Another package depends on An error occurred while parsing the package to be deleted.|-valign="top"|{{Code|BXRE0009version}}
|The package version is not supported.
|-
|{{Code|BXRE0010}}
|The package contains an invalid JAR descriptor.
|-
|{{Code|BXRE0011}}
|The package contains a JAR descriptor but it cannot be read.
|}
=Changelog=
===;Version 79.2.1===0 * Updated: error codes updated; errors now use the module namespace
;Version 7.2.1 * Updated: [[#repo:install{{Function||repo:install]]}}: existing packages will be replaced* Updated: [[#repo:delete{{Function||repo:delete]]}}: remove specific version of a package
;Version 7.2
* Updated: [[#repo:list{{Function||repo:list]] }} now returns nodes The module was introduced with {{Version|7.1}}.
[[Category:XQuery]]The module was introduced with Version 7.1.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu