Fork me on GitHub
#sql
<
2021-07-19
>
seancorfield00:07:11

I'm updating the docs in several places to talk about this, including the PostgreSQL section, and I'm also going to add cross-links back and forth between HoneySQL and next.jdbc.

seancorfield00:07:26

Even if I can't stop people shooting themselves in the foot, I hope I can at least point out where the most dangerous footguns are 🙂

seancorfield00:07:56

(reminds me of a conversation with Bjarne Stroustrup back in the mid-'90s -- on the C++ committee -- where we were talking about "dangerous" features in the language and he admitted that "if C allows you to shoot yourself in the foot, C++ sometimes lets you blow your entire foot off" or words to that effect)

👌 2
zackteo06:07:54

Hello! I realised that database column names that JDBC returns are that of keys connected with underscores _. But from my understanding, keywords in Clojure are usually connnected with dashes - like :lu_text vs :lu-text . Is there a standard way to convert this in JDBC or should I just rename the keys on my frontend ? :thinking_face:

zackteo07:07:48

Okay I realised this is literally rs/as-unqualified-kebab-maps or rs/as-kebab-maps

emccue15:07:42

Those functions are built on camel-snake-kebab. That should be your goto in general f you want to make such a conversion