4 ms·
I use https://github.com/coopernurse/gorp https://github.com/coopernurse/gorp on daily basis. But I find it doesn't support Postgres array type. Do you know wha
by hanief 12y ago
I use https://github.com/coopernurse/gorp https://github.com/coopernurse/gorp on daily basis. But I find it doesn't support Postgres array type. Do you know what ORM is supporting it?
- Arkan 12y agoAs far as I know no ORM support arrays natively. I have a few projects made around sqlx, and I had to support arrays. So I ended up doing the support myself.
- hanief 12y agoI see. Do you have it open sourced somewhere? Or do you have some references on this subject for me to explore? thanks.
- Arkan 12y agoI started with this Gist. https://gist.github.com/adharris/4163702 https://gist.github.com/adharris/4163702 But ended up with a custom type implementing Scan & Value. Check this out: https://groups.google.com/forum/#!topic/golang-nuts/aPJVwRQq8fg https://groups.google.com/forum/#!topic/golang-nuts/aPJVwRQq... Good luck :-)