This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-31
Channels
- # arachne (4)
- # beginners (21)
- # boot (36)
- # cider (59)
- # cljsrn (8)
- # clojure (260)
- # clojure-filipino (3)
- # clojure-greece (3)
- # clojure-italy (15)
- # clojure-russia (58)
- # clojure-spec (54)
- # clojure-uk (99)
- # clojureremote (5)
- # clojurescript (65)
- # core-matrix (1)
- # cursive (17)
- # data-science (9)
- # datascript (7)
- # datomic (33)
- # emacs (8)
- # hoplon (2)
- # jobs (1)
- # jobs-discuss (2)
- # lein-figwheel (2)
- # lumo (2)
- # numerical-computing (1)
- # off-topic (22)
- # om (78)
- # onyx (17)
- # parinfer (3)
- # pedestal (5)
- # perun (1)
- # powderkeg (19)
- # protorepl (37)
- # re-frame (3)
- # rum (2)
- # spacemacs (1)
- # uncomplicate (8)
- # unrepl (78)
- # untangled (29)
- # yada (41)
So.. I'm seeing a weird case where d/pull
isn't resolving a :db/ident
. It works when I use d/entity
.
dev=> (d/pull (db) [:taskexec/status] [:taskexec/uuid taskexec-uuid])
#:taskexec{:status #:db{:id 17592186045419}}
dev=> (:taskexec/status (d/entity (db) [:taskexec/uuid taskexec-uuid]))
:taskexec.status/available
@eraserhd that's know difference between pull and entity I believe
@pesterhazy Thanks
I swear it was documented somewhere but I can't find the section in the docs
can datomic peers with a newer version of datomic connect to transactors running an older version of datomic? is there a limit to how many versions out of sync they can be?
i'm debugging Cannot connect to server(s). Tried with all available servers.
with both peer and transactor running in my staging env. verified everything can hit underlying sql storage. verified the certificates are valid. verified peer can hit the transactor endpoint.
@eraserhd yeah, I found that quite frustrating. We were using an ident as essentially an enum
Upgrade: the transactor and the peer now use ActiveMQ Artemis 1.4.0. Peers from this release forward cannot connect to older transactors. When upgrading to (or past) this release, you must upgrade transactors first.
Is this possible?
(d/q '[:find ?un (pull ?u [*])
:where
[_ :app/user ?u]
[?u :user/first-name ?f]
[?u :user/last-name ?l]
[(str ?f " " ?l) ?un]]
@conn)
;; result
(["Alyssa Hacker"
{:db/id 1,
:user/first-name "Alyssa",
:user/last-name "Hacker",}])
;; desired result:
{:db/id 1
:user/first-name "Alyssa"
:user/last-name "Hacker"
:user/full-name "Alyssa Hackerā}
You're missing the middle initial, P
@pesterhazy itās there just not querying for it š