honeysql

Discussion of https://github.com/seancorfield/honeysql :slightly_smiling_face:
2021-03-27T16:57:18.068500Z

If you want to format the query as a string with no parameters (e.g. to use the SQL statement in a SQL console), pass :inline true as an option to sql/format:
THANK YOU @seancorfield!!!

seancorfield 2021-03-27T17:18:42.068600Z

There's also :pretty true :simple_smile:

2021-03-27T17:36:02.068700Z

Already knew about :pretty but not about :inline which I needed, and was about to go manually inline a lot of cruft, and then while taking a shower this morning, it occured to me "wouldn't be awesome if sql/format did that", read the docs, and there it was!

1
orestis 2021-03-27T18:53:13.069800Z

That’s a pretty nice feature! Is that honey sql 2 only? Very good reason to switch ASAP :)

seancorfield 2021-03-27T18:58:19.070700Z

@orestis V2 only 🙂 Well, in theory the :parameterizer :none option in V1 did the same thing, except it didn’t work properly as I recall.