On Tue, Apr 26, 2011 at 2:16 PM, lispnik <burnsid...@gmail.com> wrote:
> ...Liquibase so I can get rollbacks and branching easily. > Off-topic question: What does branching mean in the context of Liquidbase? > I suggest not getting into the SQL in sexps/naming strategies business. > That kind of thing doesn't really fall under the scope of JDBC, which > clojure.java.jdbc should be modeled around. > I'm with you on that one. > The row as a structmap works well. 90% of the time I use use "select > foo_bar as \"foo-bar\"..." to get a Clojure-ish map key. Other 10% I might > also have to apply a transformation to the row, especially when working with > legacy databases. I thought having something like: > > (with-query-results rs transform-fn [" > ..." params...] > (first rs)) > > So that by the time I call (first rs), transform has already been applied, > but (map transform-fn rs) is trivial enough also. Is that good enough for you: https://github.com/clojure/java.jdbc/issues/7#issuecomment-1060402 I could always add an extra optional argument to with-query-results. -- 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