Changes

Jump to navigation Jump to search
1,120 bytes removed ,  13:11, 24 May 2018
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%'
|-
| width='90120' | '''Signatures'''
|{{Func|repo:install|$path as xs:string|empty-sequence()}}<br />
|-
| '''Summary'''
|Installs a package, or (since {{Version|7.2.1}}), replaces an existing package. The parameter {{Code|$path}} indicates the path to the package.<br />
|-
| '''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%'
|-
| width='90120' | '''Signatures'''
|{{Func|repo:delete|$pkg as xs:string|empty-sequence()}}<br />
|-
| '''Summary'''
|Deletes a package. The parameter {{Code|$pkg}} indicates either the package name as specified in the package descriptor or (since {{Version|7.2.1}}) the name, optionally suffixed with a hyphen dash and the package version.<br />
|-
| '''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%'
|-
| width='90120' | '''Signatures'''
|{{Func|repo:list||element(package)*}}<br />
|-
{| class="wikitable" width="100%"
! width="5%110"|Code! width="95%"|Description|-|{{Code|BXRE0001}}|The addressed package does not exist.
|-
|{{Code|BXRE0002delete}}|A The package uses an invalid namespace URIcannot be deleted because of dependencies, or because files are missing.
|-
|{{Code|BXRE0003}}|The package to be installed requires a package which is not installed yet.|-|{{Code|BXRE0004descriptor}}
|The package descriptor is invalid.
|-
|{{Code|BXRE0005installed}}
|The module contained in the package to be installed is already installed as part of another package.
|-
|{{Code|BXRE0006not-found}}|The A package cannot be parseddoes not exist.
|-
|{{Code|BXRE0007parse}}|The An error occurred while parsing the package cannot be deleted.
|-
|{{Code|BXRE0008}}|Another package depends on the package to be deleted|-|{{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 9.0
 
* Updated: error codes updated; errors now use the module namespace
;Version 7.2.1
* Updated: [[#repo:list|repo:list]] now returns nodes
The module was introduced with {{Version|7.1}}[[Category:XQuery]]
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu