Fork me on GitHub
#honeysql
<
2023-05-27
>
Nazral15:05:51

Hi! How can I do json_group_array(table.col) AS foo with honeysql ?

Nazral15:05:56

the AS part I got it no problem, but the json_group_array

p-himik15:05:25

(sql/format {:select [[[:json_group_array :table/col] :foo]]} )
=> ["SELECT JSON_GROUP_ARRAY(table.col) AS foo"]

Nazral15:05:42

Thanks a lot !

👍 2