You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The intended use case is to be able to decode two different users for the same row, one would have all its columns prefixed by otheruser_ for example and the other one would have no prefix or "" as prefix.
In the decoder for the final type, I would then be able to decode both users as follow:
Hmmm, that looks tricky and a little complex with the use of AppendSymbol, but perhaps worth a try. I might instead use the row (or even rowStar) function to store the two users as exactly two columns, depending on how the query looked, so you don't have to worry about duplicated field names. And then decode those columns with a FromPG User instance defined with rowValue.
Hi,
I'm trying to factorize some of my row decoding code and I'm wondering if something like the following is possible.
The following currently doesn't work because of overlapping instances (and maybe further errors down the road).
With the following schema
And the following type
The intended use case is to be able to decode two different users for the same row, one would have all its columns prefixed by otheruser_ for example and the other one would have no prefix or "" as prefix.
In the decoder for the final type, I would then be able to decode both users as follow:
The text was updated successfully, but these errors were encountered: