honeysql

Discussion of https://github.com/seancorfield/honeysql :slightly_smiling_face:
benny 2020-09-16T15:13:30.038800Z

is there a simple way to get PgArray columns back as clojure vectors?

benny 2020-09-16T15:48:08.039Z

for now i’m doing

(map #(update-in % [:arr] (fn [a] (-> .getArray vec)))
     results)

orestis 2020-09-16T16:06:08.040700Z

Yeah, look at the docs - I’m away from keyboard or I could provide a link. You implement a multi method or something like that. I can offer more concrete help tomorrow!

seancorfield 2020-09-16T17:47:18.040900Z

Note: this is nothing to do with HoneySQL. This will depend on the JDBC wrapper you are using to do actual queries @benny so the question belongs in #sql

orestis 2020-09-16T18:01:56.041400Z

Doh yeah I didn’t look at the channel closely.