Skip to content

❓ How does relationship validation happen on definition and on insert in application? #1239

Answered by stefjoosten
NikitaIT asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Nikita,

Sorry to be late in reacting. You define RELATION or insert POPULATION in a script (a UTF-8 file). All verification is done in the compiler by the type checker. Let us assume the static type checking has succeeded. Then the question remains whether the population violates any of the rules. The compiler checks this too. No code is generated until all these checks are passed. So let us say that relation r is univalent, and you have specified that the population of r contains both (2, "foo") and (2, "bar"), the compiler will complain about violating the univalence of r.

I'm not sure this answers your question. Feel free to react if it doesn't.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Michiel-s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1114 on November 13, 2021 16:57.