You can wrap your code in (entities ...) and/or (identifiers ...) and it will apply to all the java.jdbc calls inside.
Clojure/core have specifically said they don't want *dynamic-vars* in contrib libraries. We have thousands of lines of java.jdbc code at work and name mapping hasn't been an issue - it's easy enough to wrap calls where name mapping is really needed - and mostly it isn't. Can you explain your use case where you have a problem with the current setup? Sean On Mon, Aug 26, 2013 at 8:23 PM, Alice <dofflt...@gmail.com> wrote: > Then, how about making them global so that they can be altered? > I know global parameters are ugly, but having to specify them every time is > really a pain. > > > On Tuesday, August 27, 2013 2:32:20 AM UTC+9, Sean Corfield wrote: >> >> The db-spec is not used by the DSL. Name mapping is a function of the >> DSL, in general. This request has come up in the past and it just >> isn't practical since the db-spec is completely independent of the >> DSL. >> >> On Mon, Aug 26, 2013 at 6:06 AM, Alice <doff...@gmail.com> wrote: >> > It would be convenient if I can specify the default entities and >> > identifiers >> > functions in a database spec. I usually want those mappings to be >> > applied >> > all the time. >> > >> > -- >> > -- >> > You received this message because you are subscribed to the Google >> > Groups "Clojure" group. >> > To post to this group, send email to clo...@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+u...@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+u...@googlegroups.com. >> > For more options, visit https://groups.google.com/groups/opt_out. >> >> >> >> -- >> Sean A Corfield -- (904) 302-SEAN >> An Architect's View -- http://corfield.org/ >> World Singles, LLC. -- http://worldsingles.com/ >> >> "Perfection is the enemy of the good." >> -- Gustave Flaubert, French realist novelist (1821-1880) > > -- > -- > 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. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of the good." -- Gustave Flaubert, French realist novelist (1821-1880) -- -- 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.