3 ms·
As 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.
by Arkan 12y ago
As 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 :-)