Only identifiers (converting from SQL entities to Clojure keywords)
are handled "in" java.jdbc directly (inside result-set-seq) - entities
are handled in the DSL which generates SQL and therefore it's not
related to a connection. If you don't use the DSL, there's no
translation going on - you pass in strings to the java.jdbc functions
and they do whatever you've told them to do...
In (query db-spec (select * :employee (where {:department "IT"}))) the
DSL is invoked first to generate "SELECT * FROM employee WHERE
department = ?" before query is introduced and before db-spec is
looked at.
True, you could still have a default for identifiers on db-spec which
was used for result-set-seq but that seems asymmetric. If folks think
that's worthwhile despite the asymmetry, can someone create a ticket
in JIRA so I don't forget to look into it in more detail?
Sean
On Mon, Apr 8, 2013 at 7:24 PM, Matching Socks <[email protected]> wrote:
> Could the entities and identifiers functions (translating map-keys to
> SQL-names and back) be specified along with connection parameters to avoid
> repetition with each operation?
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected].
> 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 [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.