- All Modules
- All Functions
-
www.w3.org
- 2005
- XDM
- store
- introspection
- reflection
- external
-
xqdoc
-
project_xqdoc
-
xqdoc
(E)
- xqdoc2xhtml
-
project_xqdoc
- data processing
- expath.org
- www.functx.com
- debugger
- error
http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl
import module namespace icddl = "http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl";
This module defines a set of functions to manage integrity constraints which are declared in the prolog of a module. For example, it provides functions to activate or deactivate integrity constraints.
This module is part of Zorba's XQuery Data Definition Facility. All the integrity constraints 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.
Nicolae Brinza, Matthias Brantner, David Graf, Till Westmann, Markos Zaharioudakis
xquery version "3.0" encoding "utf-8";
The latest version of this module is 2.0. For more information about module versioning in Zorba please check out this resource.
- the XQuery module can be found here.
For more details please also see:
- Data Lifecycle
- XQuery Data Definition Facility
- http://www.zorba-xquery.com/modules/store/static/collections/dml
- http://www.zorba-xquery.com/modules/store/static/collections/ddl
- http://www.zorba-xquery.com/modules/store/static/indexes/ddl
- http://www.zorba-xquery.com/modules/store/static/indexes/dml
- http://www.zorba-xquery.com/modules/store/static/integrity_constraints/dml
- http://www.zorba-xquery.com/errors
icddl | http://www.zorba-xquery.com/modules/store/static/integrity_constraints/ddl |
ver | http://www.zorba-xquery.com/options/versioning |
zerr | http://www.zorba-xquery.com/errors |
![]() ![]() |
activate
(
$name as xs:QName
) external The activate function is an updating function that activates the integrity constraint identified by the expanded QName $name in the dynamic context. |
![]() |
activated-integrity-constraints
(
) as xs:QName* external The function returns a sequence of QNames representing the integrity constraints that are activated. |
![]() ![]() |
deactivate
(
$name as xs:QName
) external The deactivate function is an updating function that deactivates the integrity constraint with the given QName. |
![]() |
declared-integrity-constraints
(
) as xs:QName* external The function returns a sequence of QNames representing the integrity constraints that have been declared in the prolog of the static context. |
![]() |
is-activated-integrity-constraint
(
$name as xs:QName
) as xs:boolean external The function returns true if an integrity constraints with the given QName is activated. |
![]() |
is-declared-integrity-constraint
(
$name as xs:QName
) as xs:boolean external The function returns true if a integrity constraints with the given QName is declared in the prolog of the static context. |
declare updating function icddl:activate (
$name as xs:QName
) external
The activate function is an updating function that activates the integrity constraint identified by the expanded QName $name in the dynamic context.
- $name The QName of the integrity constraint to activate.
- The result of the function is an empty XDM instance and a pending update list that consists of a upd:activateIntegrityConstraint($name) update primitive.
- zerr:ZDDY0031 if available integrity constraints in the static context does not provide a mapping for the expanded QName $name.
declare function icddl:activated-integrity-constraints ( ) as xs:QName* external
The function returns a sequence of QNames representing the integrity constraints that are activated. The sequence will be empty if there are none.
- A sequence of QNames, one for each activated integrity constraint, or an empty sequence.
declare updating function icddl:deactivate (
$name as xs:QName
) external
The deactivate function is an updating function that deactivates the integrity constraint with the given QName.
- $name The QName of the integrity constraint to deactivate.
- The result of the function is an empty XDM instance and a pending update list which, once applied, deactivates the integrity constraint.
- zerr:ZDDY0032 if the integrity constraints is not declared in the the static context.
- zerr:ZDDY0032 if the given integrity constraints is not activated.
declare function icddl:declared-integrity-constraints ( ) as xs:QName* external
The function returns a sequence of QNames representing the integrity constraints that have been declared in the prolog of the static context.
- A sequence of QNames, one for each created integrity constraints, or an emtpy sequence.
declare function icddl:is-activated-integrity-constraint (
$name as xs:QName
) as xs:boolean external
The function returns true if an integrity constraints with the given QName is activated.
- $name The QName of the constraint that is being checked.
- true if the integrity constraint has is activated and false otherwise.
declare function icddl:is-declared-integrity-constraint (
$name as xs:QName
) as xs:boolean external
The function returns true if a integrity constraints with the given QName is declared in the prolog of the static context.
- $name The QName of the constraint that is being checked.
- true if the constraint is declared and false otherwise.