honeysql

Discussion of https://github.com/seancorfield/honeysql :slightly_smiling_face:
dharrigan 2020-11-23T21:15:16.215Z

Does honeysql support this form insert into foo select * from bar, or (in addition to) insert into foo (col1, col2) select col1, col2 from bar?

dharrigan 2020-11-23T21:16:46.215300Z

I'm sure I asked this before...scraping memory

dharrigan 2020-11-23T21:20:07.215500Z

yuus

dharrigan 2020-11-23T21:20:30.216200Z

Yup

dharrigan 2020-11-23T21:20:35.216400Z

just worked it out 🙂

dharrigan 2020-11-23T21:21:49.217400Z

(-> (insert-into [[:foo [:col1 :col2] (-> (select :col1 :col2) (from :bar)]) sql/format)