honeysql

Discussion of https://github.com/seancorfield/honeysql :slightly_smiling_face:
pinealan 2021-06-15T04:36:41.024Z

Are there examples out there for writing CTE in honeysql? I’m basically trying to write insert queries with https://dba.stackexchange.com/questions/46410/how-do-i-insert-a-row-which-contains-a-foreign-key so it involves quite a few types of clauses in one go where the interactions are not described in the docs

seancorfield 2021-06-15T05:00:19.025100Z

And if you're still using 1.x, the first test here has an example: https://github.com/seancorfield/honeysql/blob/v1/test/honeysql/core_test.cljc#L16

pinealan 2021-06-15T05:10:56.025300Z

thanks for the pointer!

pinealan 2021-06-15T05:12:20.025500Z

ya I’m still on 1.x, I’ve only just read the 1.x -> 2 differences doc and still digesting the changes