Skip to content

Commit a260aa1

Browse files
committed
Allow entity ids to be strings in datoms
We are using wanderung for rewriting history (i.e. adding new datoms with tempids), and one problem with existing spec is that is disallows tempids, while the actual migration process seem to work fine. I'm not sure whether support for rewriting history is in scope for wanderung, if it isn't, feel free to decline the PR!
1 parent ff03f74 commit a260aa1

1 file changed

Lines changed: 1 addition & 1 deletion

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)

0 commit comments

Comments
 (0)