我想在這裏按照指示:https://devcenter.heroku.com/articles/clojure-web-applicationLeiningen/Clojure是怪怪的,當我嘗試連接到PostgreSQL數據庫
一切都沒事,直到其中I型
(sql/with-connection (System/getenv "DATABASE_URL")
(sql/create-table :testing [:data :text]))
到Leiningen的步驟REPL。我得到這個錯誤:
org.postgresql.util.PSQLException: Something unusual has occured to cause the driver to fail. Please report this exception. (NO_SOURCE_FILE:0)
,然後Leiningen甚至不會執行(exit)
功能。是什麼賦予了?
請幫忙,謝謝。
什麼是'(系統/ GETENV「DATABASE_URL」)'的價值? – 2012-04-10 14:12:56
「postgresql:/// shouter」 – ZenLikeThat 2012-04-10 15:19:31
我不知道PostgreSQL,但看起來連接字符串缺少主機名。 – 2012-04-10 17:01:55