You might want to post this at https://groups.google.com/forum/#!topic/datomic instead...
On Tuesday, January 31, 2017 at 1:16:02 PM UTC-6, Dmitry Lipovoi wrote: > > Hey everyone, > > Im trying to express following requirements in datomic schema: person may > have many emails, but no two persons should share the same email. > > What comes to mind at first: > > {:db/ident :person/email > :db/valueType :db.type/string > :db/cardinality :db.cardinality/many > :db/unique :db.unique/identity ; or :db.unique/value, not sure what > is better > } > > But documentation [1] states that "only :db.cardinality/one attributes can > be unique". Still this schema is accepted by datomic, and AFAICT works as I > expect. > > Could someone clarify why unique is declared to be cardinality/one only? > And what approach better suits to my problem? > > Thanks in advance. > > [1] http://docs.datomic.com/identity.html#sec-4 > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.