Skip to content

Commit b4b2b79

Browse files
authored
Merge pull request #10 from vlaaad/patch-1
Allow entity ids to be strings in datoms
2 parents ff03f74 + b912e5f commit b4b2b79

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/wanderung/datom.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(ns wanderung.datom
22
(:require [clojure.spec.alpha :as spec]))
33

4-
(spec/def :datom/eid number?)
4+
(spec/def :datom/eid (spec/or :id number? :tempid string?))
55
(spec/def :datom/attribute keyword?)
66
(spec/def :datom/value any?)
77
(spec/def :datom/transaction-id :datom/eid)

src/wanderung/datomic_cloud.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,5 @@
116116
v) tx added])))
117117
data-extract (mapcat (fn [{:keys [data]}]
118118
(into [] map-db-ident data)))
119-
tx-data (d/tx-range conn {:start start-tx})]
119+
tx-data (d/tx-range conn {:start start-tx :limit -1})]
120120
(into [] data-extract tx-data)))

0 commit comments

Comments
 (0)