On Wed, Sep 14, 2011 at 12:51 AM, finbeu <info_pe...@t-online.de> wrote: > Yes, if I understand it correctly, instead of db, I just use the pooled-db > It would be good to have an example that connects the pooled db stuff with > the normal db stuff.
Ah, that would make it clearer.. > (defn db-update-or-insert > "Updates or inserts a fruit" > [record] > (sql/with-connection pooled-db It would be (sql/with-connection @pooled-db .. or (sql/with-connection (db-connection) .. I like the function wrapper because it's easy to forget the deref (@). -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ Railo Technologies, Inc. -- http://www.getrailo.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