I'm trying to understand how 'binding' works, looking at the jdbc lib. 
with-connection* binds *db* and then invokes a function. That function will 
invoke other jdbc methods which do not take a connection parameter, so I 
presume they are pulling the connection from *db*. As I understand it, the 
value of *db* is scoped to the call stack somehow: anything called from 
with-connection* will have the new value of *db*, but once with-connection* 
returns the old value of *db* is restored?

How would I do an operation involving two databases? I'd need to call 
with-connection* from with-connection*? How would I then read from one & 
write to the other?

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