Validation Directives

Validation directives provide a declarative way to define business rules and data-quality requirements for JSON-relational duality views.

They allow the database to determine whether application objects are valid as they are read or modified, helping ensure that data consistently conforms to application and domain requirements.

By centralizing validation at the view layer, the feature provides consistent protection across applications and access paths, including changes that affect related objects. This helps detect invalid data early, improves data reliability, and gives developers flexibility to balance correctness, consistency, and performance for their workloads.

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: