Fork me on GitHub
#datomic
<
2017-04-29
>
cauli.tomaz03:04:41

Hey! How are you doing? If I have an identifier for a :db/ident (e.g.: 17592186045423), is there a way to check/query its corresponding keyword? I'm using these :db/idents as enumerated types, and when I grab the ref type in a query they are retrieved as a :db/ids, and I want to know their meaning 🙂

cauli.tomaz03:04:36

Woot! Got it.

(defn query-schema-idents! []
  (let [idents (<!! (d/q conn {:query '[:find ?id ?ident
                                        :where [?id :db/ident ?ident]]
                               :args [db]}))]
    (println idents)))

val_waeselynck08:04:06

@cauli.tomaz just use datomic.api/ident :)

cauli.tomaz09:04:43

That is nice to know, @val_waeselynck, thanks. But I'm using the Client API and ident is not available, I forgot to mention that.

celldee16:04:24

Hi, I'm trying to include the Datomic Peer library in my leiningen project. The documentation says that I can include something like this - [com.datomic/datomic-EDITION "VERSION"] - in my project.clj. I put [com.datomic/datomic-pro "0.9.5561"] in but got an error saying: Could not find artifact com.datomic:datomic-pro:jar:0.9.5561 in central (https://repo1.maven.org/maven2/) Could not find artifact com.datomic:datomic-pro:jar:0.9.5561 in clojars (https://clojars.org/repo/) Can anyone tell me how to include the Peer library in my project correctly?

favila16:04:56

You also need to add the datomic maven repository with credentials (which are specific to you). See https://my.datomic.com after logging in

favila16:04:51

It's right above the order history

favila16:04:51

It's right above the order history

celldee16:04:59

@favila Thanks very much.