From 13144ee305ffbbe4b2d4fedf0c2e07d655bf651b Mon Sep 17 00:00:00 2001 From: vlaaad Date: Wed, 3 Nov 2021 14:10:34 +0100 Subject: [PATCH 1/2] Load all txs --- src/wanderung/datomic_cloud.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wanderung/datomic_cloud.clj b/src/wanderung/datomic_cloud.clj index b60926d..655cee2 100644 --- a/src/wanderung/datomic_cloud.clj +++ b/src/wanderung/datomic_cloud.clj @@ -116,5 +116,5 @@ v) tx added]))) data-extract (mapcat (fn [{:keys [data]}] (into [] map-db-ident data))) - tx-data (d/tx-range conn {:start start-tx})] + tx-data (d/tx-range conn {:start start-tx :limit -1})] (into [] data-extract tx-data))) \ No newline at end of file From b912e5f6f61fd84c7250cd10e0a21cc6f45da67c Mon Sep 17 00:00:00 2001 From: vlaaad Date: Mon, 1 Nov 2021 16:44:09 +0100 Subject: [PATCH 2/2] 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! --- src/wanderung/datom.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wanderung/datom.clj b/src/wanderung/datom.clj index 7cb72c1..95d1ae6 100644 --- a/src/wanderung/datom.clj +++ b/src/wanderung/datom.clj @@ -1,7 +1,7 @@ (ns wanderung.datom (:require [clojure.spec.alpha :as spec])) -(spec/def :datom/eid number?) +(spec/def :datom/eid (spec/or :id number? :tempid string?)) (spec/def :datom/attribute keyword?) (spec/def :datom/value any?) (spec/def :datom/transaction-id :datom/eid)