honeysql

Discussion of https://github.com/seancorfield/honeysql :slightly_smiling_face:
wombawomba 2020-06-13T14:52:41.086100Z

How can I build a INSERT INTO foo SELECT ... FROM ... statement with HoneySQL?

dharrigan 2020-06-13T15:14:46.086300Z

(-> (insert-into [:foo (-> (select :*) (from :bar))]) sql/format)
["INSERT INTO foo SELECT * FROM bar"]

wombawomba 2020-06-13T15:16:48.086500Z

@dharrigan thx!

seancorfield 2020-06-13T19:42:45.086600Z

Cross-posting from #sql for anyone who is here but not there...

👍 2
kwrooijen 2020-06-13T20:03:49.087100Z

Cool!