This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-01
Channels
- # announcements (3)
- # babashka (20)
- # beginners (77)
- # calva (27)
- # cider (5)
- # clara (3)
- # clj-kondo (9)
- # cljs-dev (4)
- # cljsrn (5)
- # clojure (26)
- # clojure-europe (32)
- # clojure-italy (5)
- # clojure-nl (3)
- # clojure-uk (5)
- # clojurescript (25)
- # clojureverse-ops (4)
- # core-async (49)
- # cursive (15)
- # data-science (1)
- # datahike (4)
- # datomic (3)
- # docker (1)
- # events (1)
- # helix (5)
- # holy-lambda (3)
- # introduce-yourself (1)
- # jobs (1)
- # kaocha (2)
- # lsp (15)
- # malli (42)
- # off-topic (18)
- # pathom (18)
- # pedestal (12)
- # polylith (7)
- # rdf (1)
- # re-frame (22)
- # reitit (2)
- # releases (1)
- # remote-jobs (1)
- # rewrite-clj (33)
- # shadow-cljs (85)
- # spacemacs (3)
- # vim (12)
- # xtdb (29)
Is it possible in datahike to explicitly specify the txInstant as in datomic for backfill of data?
(d/transact conn {:tx-data [{:inv/sku "SKU-42"
:inv/color :green}
[:db/add "datomic.tx" :db/txInstant #inst "2001"]]})
Hi @U6CN6JQ22, did not actually find an example for transacting this but since Datahike stores txInstant you should be able to transact this as well... maybe @UB95JRKM3 or @UQVCR784A can elaborate? https://cljdoc.org/d/io.replikativ/datahike/0.3.6/doc/time-variance are the docs on time variance. Probably it needs some update on transacting as well as https://github.com/replikativ/datahike/blob/development/examples/basic/src/examples/time_travel.clj. We are happy to take a merge request if you want to update them.
Hi @U4GEXTNGZ thanks for the answer! I was evaluating different datalog databases, I have strong needs for backfill of data out of time and recreate the past, and after having a look at xtdb too, it seems to be exactly what I need with the valid_time feature