This module is part of Zorba's XQuery Data Definition Facility. All the collections managed by this module have to be pre-declared in the prolog of a module. Please refer to the general documentation for more information and examples.
available-collections
() as xs:QName* external
Gets the QNames of the collections that have been statically declared and are available, if any. |
create
($name as xs:QName) external
Creates a collection. |
create
($name as xs:QName, $content as item()*) external
Creates a collection and adds the given sequence as content to the new collection. |
declared-collections
() as xs:QName* external
Gets the collections that have been declared in the prolog of the static context. |
delete
($name as xs:QName) external
Deletes a collection. |
is-available-collection
($name as xs:QName) as xs:boolean external
Gets whether a collection is statically declared and available. |
is-declared-collection
($name as xs:QName) as xs:boolean external
Gers whether a collection was declared in the prolog of the static context. |
declare function cddl:available-collections() as xs:QName* external
declare function cddl:create($name as xs:QName) external
declare function cddl:create($name as xs:QName, $content as item()*) external
declare function cddl:declared-collections() as xs:QName* external
declare function cddl:delete($name as xs:QName) external
declare function cddl:is-available-collection($name as xs:QName) as xs:boolean external
declare function cddl:is-declared-collection($name as xs:QName) as xs:boolean external