Fork me on GitHub
#honeysql
<
2022-03-10
>
flowthing10:03:02

This surprised me:

(honey.sql/format {:select #{:foo :bar} :from :baz})
;;=> ["SELECT ? FROM baz" #{:bar :foo}]
(honey.sql/format {:select [:foo :bar] :from :baz})
;;=> ["SELECT foo, bar FROM baz"]
Is this intentional?

seancorfield18:03:25

Sequential forms are part of the DSL. Other data structures are treated as your data.

seancorfield18:03:03

(I'm on vacation for a couple of weeks so responses will be rare)

flowthing18:03:21

OK, makes sense, thanks! (And have a relaxing vacation!)