Can you express nested functions in honeysql, say sum(coalesce(a, b))
?
Would [:sum [:coalesce a b]]
work?
dev=> (sql/format-expr [:sum [:coalesce :a :b]])
["SUM(COALESCE(a, b))"]
dev=> (sql/format {:select [ [[:sum [:coalesce :a :b]] :c] ]})
["SELECT SUM(COALESCE(a, b)) AS c"]
dev=>