Re: Simultaneous use of the same dynamic binding

2012-05-30 Thread Jack Moffitt
>> What do I do if I have to instantiate two things that uses the same >> dynamic binding at the same time.  Using the java.jdbc example, what >> if I wanted to run multiple selects from db-1 and insert each result >> into db-2?  Do I need keep calling (sql/with-connection db-2 ...) >> after each s

Re: Simultaneous use of the same dynamic binding

2012-05-30 Thread Sean Corfield
On Wed, May 30, 2012 at 3:26 PM, Gerrard McNulty wrote: > I see a lot of clojure libraries use the pattern where an implicit > variable is stored as a dynamic variable.  A good example is > clojure.java.jdbc: I wouldn't say it's a "good example". It's certainly an example of this pattern. > What

Simultaneous use of the same dynamic binding

2012-05-30 Thread Gerrard McNulty
I see a lot of clojure libraries use the pattern where an implicit variable is stored as a dynamic variable. A good example is clojure.java.jdbc: (require '[clojure.java.jdbc :as sql]) (sql/with-connection db-spec sql code here) What do I do if I have to instantiate two things that uses the s