honeysql

Discussion of https://github.com/seancorfield/honeysql :slightly_smiling_face:
maxp 2021-03-12T00:34:49.123900Z

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

maxp 2021-03-12T00:37:09.125400Z

something like

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

1💯1🔥
seancorfield 2021-03-12T00:51:56.126300Z

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

seancorfield 2021-03-12T19:46:11.127500Z

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.

seancorfield 2021-03-12T19:46:17.127700Z

^ @dharrigan 🙂