This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-21
Channels
- # adventofcode (47)
- # aleph (18)
- # announcements (20)
- # babashka (81)
- # beginners (23)
- # biff (6)
- # calva (5)
- # cider (50)
- # clojure (34)
- # clojure-europe (19)
- # clojure-norway (11)
- # clojure-spec (6)
- # clojure-uk (1)
- # clojurescript (2)
- # conjure (2)
- # cursive (14)
- # datomic (1)
- # humbleui (11)
- # hyperfiddle (3)
- # introduce-yourself (5)
- # joyride (1)
- # nbb (7)
- # off-topic (19)
- # podcasts-discuss (1)
- # reagent (3)
- # reitit (19)
- # releases (1)
- # ring-swagger (1)
- # shadow-cljs (29)
- # sql (6)
- # squint (56)
Hi Friends, I’m using (assoc jdbc/snake-kebab-opts :builder-fn rs/as-unqualified-kebab-maps)
as opts with next.jdbc
but there’s one column with a number s3-output
that’s being converted to s_3_output
and consequently failing. How can I override the csk/->snake-case
to include a :separator \-
and finally get my s3_output
column name correctly ?
Write your own builder (that may leverage CSK).
Why are you assoc
'ing into the qualified opts when there's already unqualified-snake-kebab-opts
BTW?
They're identical except for the :builder-fn
so the latter is equivalent to what you're doing: https://github.com/seancorfield/next-jdbc/blob/develop/src/next/jdbc.clj#L443-L457
Here's as-unqualified-kebab-maps
https://github.com/seancorfield/next-jdbc/blob/develop/src/next/jdbc/result_set.clj#L278-L282 so you'd want a builder like that except with a different :label-fn
used.
Thanks @U04V70XH6 Let me take a look.