This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-02
Channels
- # boot (227)
- # carry (1)
- # cljs-dev (3)
- # cljsjs (2)
- # cljsrn (19)
- # clojars (2)
- # clojure (93)
- # clojure-belgium (1)
- # clojure-dev (2)
- # clojure-italy (1)
- # clojure-spec (22)
- # clojure-uk (5)
- # core-async (15)
- # cursive (33)
- # emacs (8)
- # ethereum (1)
- # hoplon (3)
- # jobs (2)
- # leiningen (1)
- # off-topic (24)
- # om (32)
- # perun (1)
- # protorepl (1)
- # re-frame (13)
- # reagent (53)
- # rethinkdb (4)
- # ring-swagger (1)
- # vim (12)
- # yada (14)
Hi guys, first time on clojurians slack - bit of a beginner. I'm setting up a http://compose.io rethinkdb deployment and I want to use https://github.com/apa512/clj-rethinkdb to connect to it, but don't know which connection parameters I should be using
So here's my connection snippit:
`
(defn rethink-connect
[]
(r/connect :host (environ.core/env :rethinkdb-host)
:port (environ.core/env :rethinkdb-port)
:db (environ.core/env :rethinkdb-db)
:auth-key (environ.core/env :rethinkdb-auth)))
(defn record-event!
[event collection]
(let [r (with-open [conn (rethink-connect)]
(-> (r/table collection)
(r/insert [event])
(r/run conn)))]))
`
But I keep getting the error:
`
clojure.lang.ExceptionInfo: Error connecting to RethinkDB database
`
I'm getting the host, port, db and auth-key from my http://compose.io rethinkdb instance. The auth-key is the admin password taken from authentication credential provided by http://compose.io interface. Not sure what's going on.
I'm also given a connection string which I was wondering if I could use instead of each parameter - looks like
``
<rethinkdb://admin:[password]@aws-us-xxx-1-portal.xxx.xxxx.com:15731>Warning: there's something commercial afoot with rethinkdb https://discuss.horizon.io/t/are-rethink-and-horizon-dead-abandoned/619/7