Fork me on GitHub
#honeysql
<
2021-03-12
>
maxp00:03:49

@iagwanderson You can use named parameter in insert-into and after that pass param-map to sql/format.

maxp00:03:09

something like

(-> 
  (insert-into :table) 
  (values [{:map_field :?my-map}])
  (sql/format {:my-map {:a :b}}))

💯 3
🔥 3
seancorfield00:03:56

Thanks @maxp — I tend to forget about named parameters because I never use them.

seancorfield19:03:11

Just committed extended support for create/`drop` for tables, views, materialized views. Also refresh support for the latter. Docs to come but hopefully the tests explain enough of it for now.