Il giorno lunedì 28 ottobre 2013 04:12:50 UTC+1, Christopher Allen ha scritto:
You can use Korma with Stuart Sierra's workflow just fine. > > Really? Nice! Last time I tried I didn’t managed to get it to work properly. What happens to an open connection binded to a Var (via defdb) when the ns gets reloaded? Or maybe I should use korma.db/get-connection explicitly in the system starting phase? Thank you for your feedback. On Sunday, October 27, 2013 5:07:02 PM UTC-7, Manuel Paccagnella wrote: >> >> Il giorno lunedì 28 ottobre 2013 00:30:06 UTC+1, Alexander Hudek ha >> scritto: >> >> http://www.luminusweb.net/ gives a reasonable starting setup. The only >>> thing I would recommend doing differently is to use clojure/java.jdbc or >>> honeysql instead of korma for an sql dsl. >>> >> I agree. Korma is quite interesting as a DSL, but currently >> uses<https://github.com/korma/Korma/blob/master/src/korma/db.clj#L75>Vars >> under the hood to manage connections and this doesn’t play well with >> dynamic workflows as the >> one<http://thinkrelevance.com/blog/2013/06/04/clojure-workflow-reloaded>by >> Stuart Sierra. >> >> Personally I’ve used just >> clojure.java.jdbc<https://github.com/clojure/java.jdbc>( >> here <http://manuelp.herokuapp.com/posts/7> is a micro-tutorial that >> I’ve written for it) that is going under an API overhaul to make >> connections management more explicit and functional. If you need an SQL >> generation library you could look at Honey >> SQL<https://github.com/jkk/honeysql>. >> >> >> Hope it helps, >> >> Manuel >> >> PS: You could also take a look at the new book Web Development in >> Clojure<http://pragprog.com/book/dswdcloj/web-development-with-clojure>by >> the author of >> Luminus <http://www.luminusweb.net/>. >> > -- -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.