FWIW, the c.j.jdbc docs have an example of connection pooling:

http://clojure.github.com/java.jdbc/doc/clojure/java/jdbc/ConnectionPooling.html


On Mon, Dec 3, 2012 at 6:03 AM, Matthias Cords <schlafbo...@gmail.com>wrote:

> Hi,
>
> I found database connection pools to be the right thing to use with
> c.j.jdbc and multiple databases.
>
> https://clojars.org/org.bituf/clj-dbcp
>
> (let [conn1 (make-pool-1)
>       conn2 (make-pool-2)]
>   (sql/with-connection conn1
>     (sql/with-query-results r ["select ..."]
>       (sql/with-connection conn2
>         (sql/do-commands "insert into ...")))))
>
> matt
>
>
>
> On 10 October 2012 15:03, Stuart Sierra <the.stuart.sie...@gmail.com>wrote:
>
>>
>>
>> On Tuesday, October 9, 2012 10:25:05 PM UTC-4, Sean Corfield wrote:
>>>
>>> This is why c.j.jdbc is getting an API overall that will expose
>>> functions that accept the connection or the db-spec directly (and the old
>>> API will be rewritten in terms of the new one for compatibility).
>>
>>
>> Excellent.
>> -S
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clojure@googlegroups.com
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>



-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to