INTEGRITY(QUEL) 2/7/79 INTEGRITY(QUEL) NAME integrity - define integrity constraints SYNOPSIS define integrity on var is qual DESCRIPTION The integrity statement adds an integrity constraint for the relation specified by var. After the constraint is placed, all updates to the relation must satisfy qual. Qual must be true when the integrity statement is issued or else a diagnostic is issued and the statement is rejected. In the current implementation, integrity constraints are not flagged - bad updates are simply (and silently) not performed. Qual must be a single variable qualification and may not contain any aggregates. integrity statement may be issued only by the relation owner. EXAMPLE /* Ensure all employees have positive salaries */ range of e is employee define integrity on e is e.salary > 0 SEE ALSO destroy(quel) - 1 -