@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)))
(in case you wanted to preserve the calling format)
@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.)