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
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
Yes. It's described at
http://clojure-doc.org/articles/ecosystem/java_jdbc/name_mapping.html.
On Monday, August 26, 2013 10:13:22 PM UTC+9, Shantanu Kumar wrote:
Hi Alice,
Do you mean default `values` for entity columns for INSERT statements? And
by `identifiers function` did you mean
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 dofflt...@gmail.com wrote:
It would be convenient
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