Fork me on GitHub
#datomic
<
2016-09-13
>
arthur01:09:49

I must be doing this:

(let [db (d/db *conn*)]
          (->> (take 50 (d/datoms db :avet :y.example/replaced))
                     (map #(.e %))      ;; <----- wrongness here ?!?!
                     (map #(d/entity db %))
                     ./pprint))
wrong. what is the proper way to get an entity our of an item returned by the d/datoms call?

robert-stuttaford19:09:13

@jaret is it possible to control the location of the log directory that bin/datomic backup uses?

jaret19:09:46

@robert-stuttaford specifically for backup? I am not sure let me ask around. But generally you can modify the path in bin/logback.xml <fileNamePattern>${DATOMIC_LOG_DIR:-log}/%d{yyyy-MM-dd}.log</fileNamePattern>

robert-stuttaford20:09:38

doh, of course, thanks

robert-stuttaford20:09:58

yeah, so control DATOMIC_LOG_DIR

marshall20:09:13

@robert-stuttaford I just checked locally - doing an export of DATOMIC_LOG_DIR to my env followed by the backup command did work to direct logs to that location.

robert-stuttaford20:09:27

sweet, thanks for that!

marshall20:09:42

@jaret found it 🙂 i just checked it

robert-stuttaford20:09:58

don't know if you guys have a need for it, but highly recommend checking http://terraform.io out. been rebuilding our whole set up with it and it. is. fantastic

Ben Kamphaus20:09:13

We’ve also been doing some stuff with terraform at ThinkTopic. Pretty nice 🙂