jet icon indicating copy to clipboard operation
jet copied to clipboard

Adding support for arrays

Open arjen-ag5 opened this issue 1 year ago • 8 comments
trafficstars

Hello,

I'm working on support for arrays in go-jet. I was wondering if this is a feature that is considered in the long run and if it maybe merged into upstream in the long term. I'd like to show the progress I made so far and if it's any use trying to get it merged at all. If not I will not spend any effort in making it work with the different database types. Currently I only implemented postgres.

I can see from the Range support that is added earlier that the types from the pgtypes packages are being used. I took this into consideration for use as the SQL types in the generated table types. But the pgtypes.Array* structs are tailored to represent the internal representation of the postgresql array types. In constrast to the pq.Array* types which are much more user friendly, thats why I chose to use the latter.

arjen-ag5 avatar Sep 04 '24 06:09 arjen-ag5