Fork me on GitHub
#sql
<
2024-04-28
>
ag19:04:30

next.jdbc/query produces a coll of fully qualified maps, what's the simplest way of getting simple maps instead?

seancorfield19:04:05

Have you read the docs? This is explained in the docs along with lots of other useful stuff.

seancorfield19:04:54

The Getting Started page covers this...

ag19:04:19

I'm sorry for acting like an impatient child. I need to get this proto done quickly. I'll read the docs.

seancorfield20:04:08

https://cljdoc.org/d/com.github.seancorfield/next.jdbc/ -- there's a search box in the docs: type unqualified into it and it's shows several docs sections, as well as vars. I'm not trying to be difficult but you already went down an unnecessary rabbit hole with HoneySQL over something that is in the docs there...

p-himik20:04:23

It's legit faster to find it in the docs than to type out that question and wait for answers. :)

1
ag20:04:50

But where's fun in that? How would you even know who I am next time we meet at a conference if I don't annoy you endlessly? 🙂

😆 1
seancorfield20:04:40

I'm curious: why do you want "simple maps" instead of qualified maps? If it's because you're generating JSON, the libs that produce JSON from Clojure data generally either drop the ns qualifier or have an option for you to do so...

ag20:04:32

Ah, right... I did forget about that. I was just looking at my data in the REPL and didn't like the needless verbosity.

ag20:04:25

See? Faster or not, talking to you guys is almost always more insightful than finding something in the docs.