I'm trying to pass something like this in clojure
(def pg-uri {:connection-uri "jdbc:postgresql://user:[email protected]:12345/defaultdb?sslmode=verify-full&options=--cluster%3Dfoobar"})
(defn query [q]
(let [conn (j/get-connection pg-uri)]
(j/query pg-db q))
(query (-> (select :*) (from :user) (sql/format)))
but am getting ; Execution error (SocketTimeoutException) at sun.nio.ch.NioSocketImpl/timedFinishConnect (NioSocketImpl.java:539). ; Connect timed out
I was wondering how I can fix this. I'm able to connect just fine using another client. Thank you