honeysql

Discussion of https://github.com/seancorfield/honeysql :slightly_smiling_face:
pinealan 2021-06-17T05:00:05.015Z

Is it possible to create VALUES in FROM for postgresql in honeysql 1.x (or 2)?

pinealan 2021-06-17T05:04:08.018400Z

ah nevermind scratch that, I realised it’s an issue with values in from requiring an alias, got what I wanted with

(sql/format {:select [[:column1 :num]]
             :from [[{:values [[1] [2] [3]]} :vraw]]})

1
orestis 2021-06-17T15:08:31.023Z

Migrating our codebase to honeysql v2. An easy transition but I’m glad that we have end-to-end tests. If we had a bigger codebase I’d investigate an automated approach with rewrite-clj

orestis 2021-06-17T15:09:21.024300Z

Thank you @seancorfield for taking the time to do this work. I particularly like some error messages that I saw!

1
seancorfield 2021-06-17T16:24:17.025300Z

We’re migrating one query at a time at work — since we can have both v1 and v2 required into the same namespace.

borkdude 2021-06-17T16:46:52.025900Z

I using both (versions of honeysql) at the moment. I just rewrote a query using honeysql which was previously in hugsql... it's way more fun (and easier to debug).

orestis 2021-06-17T17:16:45.028600Z

A lot of our queries are interconnected so they have to be changed as a unit. But otherwise we have hugsql, honeysql 1 and honeysql 2 :) We have committed to standardize on honeysql 2 though.

borkdude 2021-06-17T17:48:49.029Z

Where can I get a t-shirt

seancorfield 2021-06-17T17:49:39.029300Z

If only HoneySQL had a project logo…

borkdude 2021-06-17T17:50:57.029800Z

If you like Calva's and clojure-lsp's logo, you could ask @jayzawrotny

borkdude 2021-06-17T17:52:36.030200Z

Nikitonsky designed clj-kondo and babashka's logo, but he's quite busy I think

borkdude 2021-06-17T17:53:13.030900Z

@lee also made a few logo's (jet and sci). So there, a few ideas

1
lread 2021-06-17T18:15:14.036800Z

I also did rewrite-clj's current logo. It was not terribly imaginative, but I also came up with the clj-kondo icon :clj-kondo:. Borkdude and I had some fun working out https://github.com/borkdude/sci/issues/129 and https://github.com/borkdude/jet/issues/50 logos. The lil hammock person is from me too: :hammock: . I would consider myself an amateur, but if you seriously want a logo, and none more talented makes an offer, I could take a stab at it sometime.

🙏 1
1
borkdude 2021-06-17T18:17:19.037800Z

The icon is iconic, thanks again @lee

lread 2021-06-17T18:19:07.038100Z

For you? Anytime!