Nicolas Buduroi
unread,Aug 20, 2011, 1:04:24 AM8/20/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to lobos-...@googlegroups.com
After discussing about an issue Pablo had with the open-global function, I decided to improve it to be able to re-open or leave alone a connection. I've made it so that the behavior of open-global remains unchanged if you don't modify your code with a new option to your db-specs.
Now, if you include the :unsafe key with a truthful value inside a db-spec, global connections opened with open-global will be closed then re-opened if the db-spec has changed, else it will do nothing. This way it smooth out the development process if you have to often edit the config namespace, which is where the open-global calls belong.
I wanted to keep the original behavior as it is (the same as ClojureQL) so if/when I get clojure.jdbc to include the connectivity namespace, it could be used by both libraries in a safe way.
The change is available in the latest SNAPSHOT release, don't hesitate to communicate any issues with this update.