honeysql

sheluchin 2025-04-23T15:16:49.794589Z

Do most people use the helper functions or just write raw maps?

sheluchin 2025-04-24T17:45:26.566509Z

Thank you @seancorfield and @ikaraszi. That's exactly the kinda of response I was hoping for.

👍 1
👍🏻 1
seancorfield 2025-04-23T15:24:23.413039Z

I'm not "most" people, I suspect, but I use a combination. I use raw maps for queries (or subqueries) where I know all the parts -- and I use the quoted literal form quite a bit because I find it a) easier to type and b) easier to read (symbols and ( .. ) instead of keywords and [ .. ]) -- and then I use the helpers where I'm conditionally building more complex queries, threading the DSL into a series of helper calls (with cond->).

István Karaszi 2025-04-23T16:10:10.791629Z

We only build maps, almost started using helper functions here and there, but at the end we did not find them better for our use cases

athomasoriginal 2025-04-26T12:13:31.975349Z

I switched most everything to helpers recently because it's fewer square brackets to write and sub-queries are more straightforward and intuitive. I was a pretty staunch user of the DSL for a while.

2025-04-23T21:46:16.812429Z

2025-04-23T21:46:17.104469Z