replikativ / datahike

A fast, immutable, distributed & compositional Datalog engine for everyone.
https://datahike.io
Eclipse Public License 1.0
1.63k stars 97 forks source link

{:db/ident keyword} should be able to be transacted #67

Open boxxxie opened 5 years ago

boxxxie commented 5 years ago

the official datomic documents give me the impression that i should be allowed to do something like

(dh.api/transact conn [{:db/ident :a/keyword}])

however, when i attempt to do this i get an error

   Incomplete schema transaction attributes, expected :db/ident,
   :db/valueType, :db/cardinality
   {:error :transact/schema,
    :entity #:db{:ident :real-estate-equity/medical}}
                   db.cljc: 1301  datahike.db$transact_tx_data/invokeStatic
                   db.cljc: 1234  datahike.db$transact_tx_data/invoke
                 core.cljc:  231  datahike.core$with/invokeStatic
                 core.cljc:  224  datahike.core$with/invoke
                 core.cljc:  438  datahike.core$_transact_BANG_$fn__24426/invoke

reference docs https://docs.datomic.com/cloud/schema/schema-modeling.html https://docs.datomic.com/on-prem/identity.html

kordano commented 5 years ago

I found this issue as well and fixed it in my development branch. Should be available in the next release.

kordano commented 5 years ago

In addition I'll create a document about what datomic features are supported and what is different.