Validation Directives

A validation directive lets you enforce business rules on documents in a JSON-relational duality view.

Validation logic is stored in the database and is evaluated automatically when a duality-view operation occurs (such as an insert, update, or select).

Validation can be performed:

  • During statement execution: before or after a document is processed, or
  • At transaction commit time: for stronger transactional guarantees.