Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Provide optional :qualifier option to better support namespaced keywords as column identifiers
Description
Currently, you can pass an :identifiers function in options to a number of functions and java.jdbc calls (keyword (identifiers col-name)) to convert SQL column names into Clojure map keys. The default for :identifiers is clojure.string/lower-case.
With the increased focus on namespaced keywords in Clojure 1.9.0 (with the introduction of clojure.spec), it would be nice to have an easy way to tell these functions to produce qualified keywords. You can do that right now by specifying something like (comp #(str "foo/" %) str/lower-case) but that's ugly!
Suggestion: add optional :qualifier option that is used as the first argument in the keyword call, which defaults to nil.
Currently, you can pass an
:identifiers
function in options to a number of functions andjava.jdbc
calls(keyword (identifiers col-name))
to convert SQL column names into Clojure map keys. The default for:identifiers
isclojure.string/lower-case
.With the increased focus on namespaced keywords in Clojure 1.9.0 (with the introduction of
clojure.spec
), it would be nice to have an easy way to tell these functions to produce qualified keywords. You can do that right now by specifying something like(comp #(str "foo/" %) str/lower-case)
but that's ugly!Suggestion: add optional
:qualifier
option that is used as the first argument in thekeyword
call, which defaults tonil
.