honeysql

Discussion of https://github.com/seancorfield/honeysql :slightly_smiling_face:
seancorfield 2021-05-05T05:45:36.254500Z

@zikajk BTW, if you’re reading a vector of [table-name where limit] you can always turn that into a map programmatically with (zipmap [table-name where limit] [:table-name :where :limit]) or your build-select could take [[table-name where limit]] as before and do (hsql/format (cond-> {:select [:*] :from [table-name]} where (assoc :where where) limit (assoc :limit limit)))

🎯 1
seancorfield 2021-05-05T05:45:50.254700Z

(in case you wanted to preserve the calling format)

Jakub Zika 2021-05-05T06:17:56.255100Z

@seancorfield Thank you. I already changed my code to use maps, no problem here. It is just that build fn is one of the first thing mentioned in HoneySQL v1 tutorial so I have been looking for it (as I migrated to version2 because of {:inline true} which is a great option btw.)