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

correct and improve SchemaFact.add/retract and SchemaEntityBuilder #104

Merged
merged 1 commit into from
Mar 17, 2014

Conversation

dwhjames
Copy link
Owner

The following should be invalid in Datomic

[:db/add id :attr [a b c]]

However, this was previously permitted. This is now eliminated.

The typeclass Attribute2FactWriter is introduced to implement this, and it also has the bonus of being a more efficient implementation over Attribute2PartialAddEntityWriter.

Also, expand the methods on SchemaEntityBuilder:

+= (attr, val)
+?= (attr, optVal)
++= (manyAttr, coll)
++= partialEntity

The following should be invalid in Datomic
```clojure
[:db/add id :attr [a b c]]
```
However, this was previously permitted. This is now eliminated.

The typeclass Attribute2FactWriter is introduced to implement this, and it also has the bonus of being a more efficient implementation over Attribute2PartialAddEntityWriter.

Also, expand the methods on SchemaEntityBuilder:
```scala
+= (attr, val)
+?= (attr, optVal)
++= (manyAttr, coll)
++= partialEntity
```
@dwhjames dwhjames added this to the v0.7 milestone Mar 17, 2014
dwhjames added a commit that referenced this pull request Mar 17, 2014
…alues

correct and improve SchemaFact.add/retract and SchemaEntityBuilder
@dwhjames dwhjames merged commit 26a6978 into develop Mar 17, 2014
@dwhjames dwhjames deleted the topic/fix-collection-values branch March 17, 2014 19:43
dwhjames added a commit that referenced this pull request Mar 17, 2014
- fix SchemaFact and SchemaEntity #104
- update version of ScalaTest
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

Successfully merging this pull request may close these issues.

1 participant