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

Add uniqueness and cardinality #39

Open
loganmhb opened this issue Nov 10, 2018 · 0 comments
Open

Add uniqueness and cardinality #39

loganmhb opened this issue Nov 10, 2018 · 0 comments

Comments

@loganmhb
Copy link
Owner

Right now, all attributes have a cardinality of many and do not enforce uniqueness. These should both be configurable.

For cardinality, "many" returns all non-retracted facts; "one" returns only the most recent non-retracted fact.

For uniqueness, there should be three types:

  1. Not unique (the default, current behavior)
  2. Unique (transactions creating an entity with a duplicate value fail)
  3. Identity (transactions creating an entity with a duplicate value are converted to updates)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant