Open guaraqe opened 2 years ago
Yeah, something like that is possible. Actually this issue can be divided into three:
I don't plan to develop these features myself, since my effort is focused on a native Postgres driver project now. https://twitter.com/NikitaYVolkov/status/1452985041366175750. It's likely that I'll address these issues there. As for addressing this in Hasql, PRs are welcome!.
The first one would be very useful already. If you give me some pointers on where to start, I think I can free some time to do it.
When there is a decoding error, it is common to have something like:
which shows the error, but lacks details, which can be difficult to debug, especially in very large queries. Would it be possible to return the full row that is supposed to be decoded, as well as the index in the row where the failure occurred? It seems that decoding happens in Haskell, so that should be possible.