Created
October 8, 2013 19:30
-
-
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"] .
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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