Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Create db-spec for accessing a remote Heroku database. Works with at least [org.clojure/java.jdbc "0.2.3"] .
(defn remote-heroku-db-spec [host port database username password]
{:connection-uri (str "jdbc:postgresql://" host ":" port "/" database "?user=" username "&password=" password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment