On Jan 14, 2009, at 1:26 PM, Greg Harman wrote:
Thanks much for your work. The new with-query-results seems to work quite well.
You're quite welcome. I'm glad to hear it!
Your timing is impeccable with this set of changes: I had just finished hacking out a (much uglier) version of update-values as well. (I'll switch over to using the clojure.contrib.sql versions now for a number of reasons).
Great!
One suggestion/request for your next set of updates: insert-or-update- values, which will determine whether the given row exists in the database already, and then issue the appropriate insert/update statement as the case may be. This is a common paradigm that I find myself doing manually all the time with database coding in any language.
I've added update-or-insert-values. I'd appreciate hearing how it works for you.
I had hacked up a version of insert-or-update-values that worked (with my version of update-values I mentioned above), but it's much too ugly to post here. :-)
:-) --Steve
smime.p7s
Description: S/MIME cryptographic signature