We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb271b1 commit 4a1975aCopy full SHA for 4a1975a
deps/db/src/logseq/db/common/entity_plus.cljc
@@ -9,7 +9,6 @@
9
[cljs.core]
10
[clojure.data :as data]
11
[datascript.core :as d]
12
- [datascript.db :as db]
13
[datascript.impl.entity :as de]
14
[datascript.impl.entity :as entity :refer [Entity]]
15
[logseq.common.util.date-time :as date-time-util]
@@ -77,10 +76,10 @@
77
76
(d/entity db eid)))
78
79
(defn unsafe->Entity
80
- "Faster verison of d/entity without checking e exists.
+ "Faster version of d/entity without checking e exists.
81
Only use it in performance-critical areas and where the existence of 'e' is confirmed."
82
[db e]
83
- {:pre [(db/db? db) (pos-int? e)]}
+ {:pre [(pos-int? e)]}
84
(de/->Entity db e (volatile! false) (volatile! {})))
85
86
(defn db-based-graph?
0 commit comments