【发布时间】:2018-03-14 13:08:00
【问题描述】:
当我尝试使用字符串 tempid 针对无 datomic v0.9.5656 处理此实体时,我收到以下异常:
(def tx1 {:db/id "user"
:contact/full-name "John Wayne"})
(def tx2 {:db/id "other"
:some-ref "user"
(let [!rx (d/transact conn [tx2])]
(prn (:tempids @!rx))
=>
datomic.impl.Exceptions$IllegalArgumentExceptionInfo: :db.error/tempid-not-an-entity tempid used only as value in transaction
data: {#object[clojure.lang.Keyword 0x74af59e7 ":db/error"] #object[clojure.lang.Keyword 0x57972b49 ":db.error/tempid-not-an-entity"]}
java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: :db.error/tempid-not-an-entity tempid used only as value in transaction
文档显示我应该能够将字符串用作临时对象。我是否缺少一个阅读器宏来告诉它有关分区的信息?
【问题讨论】: