Fork me on GitHub
#datomic
<
2016-12-04
>
gary06:12:42

@nooga yes :snowman_without_snow:

gary06:12:06

@limix I've played around with codeq and simulant but I don't have anything in production 🔥 :snowman_without_snow: 🔥

wilcov10:12:35

@robert-stuttaford @ustunozgur thanks, this should be able to keep me busy for a while!

seantempesta10:12:55

Dumb question, but it’s driving me crazy. How can I stop the [Datomic Metrics Reporter] DEBUG datomic.process-monitor messages in the repl?

az16:12:38

Hi all, could anyone give me some techniques for building a realtime clojurescript app with datomic?

nonrecursive17:12:42

hey yall, I’m trying to use a database function and running into an issue

nonrecursive17:12:47

this function is

{:db/ident :watch/upsert
           :db/id #db/id[:db.part/user]
           :db/fn #db/fn
           {:lang "clojure"
            :params [db m]
            :code (if-let [id (ffirst (d/q '[:find ?e
                                             :in $ ?u ?w
                                             :where
                                             [?e :watch/user ?u]
                                             [?e :watch/watched ?w]]
                                           db (:watch/user m) (:watch/watched m)))]
                    [(assoc m :db/id id)]
                    [(assoc m :db/id (d/tempid :db.part/user))])}}

nonrecursive17:12:08

I run (d/transact conn [[:watch/upsert {:watch/user 17592186045424 :watch/watched 17592186045442 :watch/scope :new-topic :watch/level watch}]])

nonrecursive17:12:34

and get an exception, "Cannot write [email protected] as tag null”

nonrecursive17:12:46

has anyone else run into this? any advice?

nonrecursive17:12:14

i’m using [com.datomic/datomic-free “0.9.5344”]

nonrecursive17:12:55

oh shoot I found it

nonrecursive17:12:03

I was using an unbound symbol in the transact data

nonrecursive17:12:15

thank you all for bearing witness to my struggles

nooga22:12:16

I’m getting :db.error/tempid-not-an-entity tempid used only as value in transaction error and I can’t spot anything off in my transaction

nooga22:12:19

is there a way to see the transaction transformed into datoms before transact throws this?