Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encode sets with max=1 as pointers #191

Closed
amorenoz opened this issue Jul 13, 2021 · 0 comments · Fixed by #204
Closed

Encode sets with max=1 as pointers #191

amorenoz opened this issue Jul 13, 2021 · 0 comments · Fixed by #204
Labels

Comments

@amorenoz
Copy link
Collaborator

It is a common pattern to express a column whose value is "optional" (i.e: can be omitted) as a "set" with min==0 and max==1. This is specially frequent in those types that do not have a straightforward way of expressing nullity (e.g: boolenas and enums).

Although from the RFC point of view they are sets, semantically they really express a value that can be omitted.

We should allow using pointers to refer to these kind of columns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants