This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-27
Channels
- # announcements (3)
- # aws (7)
- # babashka (11)
- # beginners (96)
- # clojure (15)
- # clojure-europe (9)
- # clojure-germany (2)
- # clojure-italy (1)
- # clojure-nl (3)
- # clojure-poland (3)
- # clojure-serbia (1)
- # clojurescript (13)
- # depstar (28)
- # fulcro (34)
- # graalvm (5)
- # honeysql (5)
- # malli (11)
- # off-topic (27)
- # pathom (9)
- # polylith (74)
- # portal (10)
- # re-frame (13)
- # releases (1)
- # ring (8)
- # shadow-cljs (3)
- # spacemacs (10)
- # tools-deps (8)
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!!!There's also :pretty true
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!
3
That’s a pretty nice feature! Is that honey sql 2 only? Very good reason to switch ASAP :)
@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.