Fork me on GitHub
#honeysql
<
2022-03-24
>
orestis05:03:07

Ok. I just discovered simple-ident? which should at least cover the symbol/keyword split. And looking at the code it seems that clauses must be lowercase.

pinkfrog15:03:39

How to use the -> and ->> json operator? They will be converted to underscore, e.g., &gt; and >> if I do not use the :raw syntax. e.g.,

(defn- sql:get-wallets-by-address
  [address]
  (-> (s/select :*)
      (s/from :wallet)
      (s/where [:= [:raw "(data->>'address')"] address])
      sql/format))

dharrigan16:03:25

you can use {:quoted true} so that the _ is not coverted