Skip to content

Instantly share code, notes, and snippets.

@kanwei
Created March 20, 2014 16:32
Show Gist options
  • Save kanwei/9668005 to your computer and use it in GitHub Desktop.
Save kanwei/9668005 to your computer and use it in GitHub Desktop.
Minimal case for jdbc leak
(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))
: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