Skip to content

Understanding "but not" operator on a relation #240

Answered by rhamzeh
Raid55 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Raid55

It affects the Check - so if tuples are written to indicate someone is both an owner and a guest, the check for owner will return false.

If you want to have a check on write, you should treat it as any other action:

  • add a relation called can_be_written_as_owner
  • before calling the Write, call Check to ensure that the action of writing can proceed

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Raid55
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