Skip to content

Instantly share code, notes, and snippets.

@mikebroberts
Created October 8, 2013 19:30
Show Gist options
  • Save mikebroberts/6890170 to your computer and use it in GitHub Desktop.
Save mikebroberts/6890170 to your computer and use it in GitHub Desktop.
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
"&ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory")})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment