Created
March 20, 2014 16:32
-
-
Save kanwei/9668005 to your computer and use it in GitHub Desktop.
Minimal case for jdbc leak
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
(ns montecarlo.web | |
(:require [yesql.core :refer :all])) | |
;; YESQL | |
(defquery test-query "s1.sql") | |
(def db-spec {:classname "org.postgresql.Driver" | |
:subprotocol "postgresql" | |
:subname xxx | |
:user xxx | |
:password xxx}) | |
(println (test-query db-spec)) |
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
:dependencies [[org.clojure/clojure "1.6.0-RC1"] | |
[yesql "0.4.0"] | |
[postgresql "9.1-901-1.jdbc4"] | |
[om "0.5.1"]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment