-- Referential integrity constraints

A referential integrity constraint violation occurs if an R-tuple refers to an undefined identifier (i.e. there is no E-tuple identified by this foreing key). Violations can be repaired or ignored.

See also
- klog_flag referential_integrity_repair
check_and_repair(+Ex:atom) is det
Scan the database for possible referential integrity violations and repair them. The repair strategy is defined by the flag referential_integrity_repair. If the value is add, then the defective E-tuple is added. If the value is delete then the offending R-tuple is deleted. If the value is ignore an exception is raised: simply don't call this predicate if no check should be performed.