>> 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
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
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