We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef94df6 commit 6ebfce8Copy full SHA for 6ebfce8
1 file changed
src/datascript/storage.cljs
@@ -158,13 +158,7 @@
158
:max-eid max-eid
159
:max-tx max-tx})]
160
(remember-db db)
161
- [db (mapv #(keep (fn [[e a v tx]]
162
- ;; fix unique constraint
163
- (let [datom-exists? (some? (db/-datoms db :eavt e a v nil))
164
- ;; retracted tx < 0
165
- added? (> tx 0)]
166
- (when-not (and datom-exists? added?)
167
- (db/datom e a v tx)))) %)
+ [db (mapv #(mapv (fn [[e a v tx]] (db/datom e a v tx)) %)
168
tail)]))))
169
170
(defn db-with-tail [db tail]
0 commit comments