This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-05
Channels
- # announcements (12)
- # babashka (29)
- # bangalore-clj (3)
- # beginners (153)
- # calva (2)
- # chlorine-clover (46)
- # cider (11)
- # clj-kondo (21)
- # cljfx (20)
- # cljs-dev (3)
- # clojure (393)
- # clojure-australia (2)
- # clojure-europe (15)
- # clojure-spec (40)
- # clojure-uk (1)
- # clojurescript (3)
- # community-development (1)
- # conjure (2)
- # cursive (1)
- # data-oriented-programming (1)
- # datomic (7)
- # defnpodcast (2)
- # docs (2)
- # figwheel-main (5)
- # fulcro (52)
- # graalvm (2)
- # inf-clojure (21)
- # malli (10)
- # meander (6)
- # mid-cities-meetup (13)
- # nrepl (1)
- # off-topic (24)
- # other-languages (1)
- # pathom (3)
- # polylith (18)
- # re-frame (6)
- # reitit (11)
- # ring-swagger (2)
- # shadow-cljs (56)
- # specter (1)
- # xtdb (7)
Hi! I have loaded the sample data from here: https://docs.datomic.com/cloud/dev-local.html#samples and am wanting to experiment with this data. However, I don’t know how I can view the data… I would appreciate some pointers or links to guides
Why do d/transact
do not return the "tx" number?
How is the easiest way to get the tx from the return of a d/transaction?
(let [conn (-> "datomic:"
(doto d/delete-database
d/create-database)
d/connect)
{:keys [tx-data]} @(d/transact conn [])]
(d/q '[:find ?tx .
:where
[?tx _ _ ?tx]]
tx-data))
@souenzzo I think you can use db-after
and use that to get basis-t
https://docs.datomic.com/on-prem/clojure/index.html#datomic.api/basis-t followed by t->tx
https://docs.datomic.com/on-prem/clojure/index.html#datomic.api/t->tx