This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-30
Channels
- # beginners (126)
- # boot (2)
- # cider (6)
- # cljs-dev (46)
- # cljsjs (8)
- # clojure (122)
- # clojure-greece (57)
- # clojure-italy (6)
- # clojure-poland (3)
- # clojure-russia (2)
- # clojure-serbia (5)
- # clojure-spec (26)
- # clojure-uk (99)
- # clojurescript (39)
- # cursive (15)
- # datascript (7)
- # datomic (21)
- # dirac (7)
- # duct (1)
- # emacs (19)
- # fulcro (58)
- # garden (4)
- # graphql (15)
- # hoplon (2)
- # immutant (1)
- # instaparse (3)
- # jobs (5)
- # juxt (15)
- # klipse (4)
- # leiningen (2)
- # lumo (52)
- # off-topic (8)
- # om (27)
- # onyx (22)
- # other-languages (3)
- # portkey (2)
- # protorepl (2)
- # re-frame (7)
- # reagent (7)
- # ring (11)
- # rum (7)
- # shadow-cljs (114)
- # spacemacs (20)
- # specter (16)
- # test-check (5)
- # timbre (1)
- # unrepl (43)
- # yada (17)
Hello. I have a quick "getting started" question.
I have a datomic-free transactor running locally but I can't work out how to access it with the datomic.client library
Should that be possible? Perhaps I should be using the datomic.api peer library.
I think the problem is guessing what parameters I should be passing to datomic.client/connect
I haven't found documentation which makes it clear. Based on the db-uri I tried (<!! (client/connect {:db-name "hello" :endpoint "localhost:4334"}))
which reports "Incomplete or invalid connection string".
Okay, still not working but new error (can't put nil on channel) when I add in more params.
{:db-name "hello"
:endpoint "localhost:4334"
:region "none"
:service "peer-server"
:account-id datomic.client/PRO_ACCOUNT
:access-key ""
:secret ""}
API Docs say "alpha, subject to change" so perhaps I should not be using the client api. I'll use the peer api instead.
I think I can answer my own question now. On the "Get Datomic" page is says that Free "does not support Datomic Clients".
FWIW my main interest in Free was a hassle free dev setup. It can be annoying to have registration things to consider while developing (or experimenting with new tech).
I have a columnar query that I’m using (d/datoms db :aevt …)
to make. A large number of the results have to be removed (remove (fn [datom] (:legacy (d/entity db (:e datom)))))
. Is there a way to filter the db to exclude these legacy entities that would be faster than the approach I’m taking? The legacy entities are the majority of of the results. I’ve also used this:
(defn not-legacy?
[db ^Datom {:keys [e]}]
(not (:legacy (d/entity db e))))
(defn without-legacy
[db]
(d/filter db not-legacy?))
I realize that that filter has to run for each datom, so I’m not surprised than its slightly slower than just calling remove/filter on the result seq
I would like to develop an open source web app using clojure on top of datomic. I have started by using postgres and the development and deployment options are amazing (free open source support on heroku, openshift etc...). Are there any paas services that provide free datomic connections?