sql

ag 2024-04-28T19:55:30.362559Z

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

seancorfield 2024-04-28T19:56:05.468609Z

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

seancorfield 2024-04-28T19:56:54.471829Z

The Getting Started page covers this...

ag 2024-04-28T19:58:19.251979Z

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

seancorfield 2024-04-28T20:01:08.397359Z

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-himik 2024-04-28T20:01:23.384739Z

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

1
ag 2024-04-28T20:12:50.040109Z

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
seancorfield 2024-04-28T20:29:40.907779Z

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...

ag 2024-04-28T20:32:32.952259Z

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

ag 2024-04-28T20:33:25.641359Z

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