how to get a raw connection with connection pools?

77 views
Skip to first unread message

Don Jackson

unread,
Apr 23, 2013, 2:17:19 AM4/23/13
to sqlk...@googlegroups.com

I use Postgres 9.2.x with Korma 0.3.0-RC5

I have some old code that uses the JDBC Connection.createArrayOf
to create an array to store in the DB, and this old code, calls clojure.java.jdbc/find-connection to get a the connection needed for createArrayOf


I'm now using connection pools with Korma, which does a great job of keeping me away from the connection itself,
I need to port this code over.

I found this on in the c3p0 docs:


I am not particularly Java savvy, can anyone help me translate this into Clojurey calls I could use to with Korma to get the connection, so I can use it to call
createArrayOf ?










Reply all
Reply to author
Forward
0 new messages