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
Most of the runtime errors with PG-Simple are related to incorrect DB (de)serialisation code. Is it possible to run the FromField, ToField, FromRow, ToRow converter functions with a set of string/bytestring obtained from a file, without involving the DB?
The text was updated successfully, but these errors were encountered:
That is a good question. Unfortunately, there is not really a way to do this at the present time.
One possibility would be to use libpq to construct Result's that could then be used to test the (de)serializers, but the result construction functions are not currently available in the postgresql-libpq binding.
The other possibility that comes to my mind is refactoring the {To,From}{Field,Row} implementation, but I cannot say I am overly excited about that right now. The interface does need a breaking overhaul, but this alone cannot justify that. And maintaining the interace while not introducing too much additional overhead seems tricky.
Related to tomjaguarpaw/haskell-opaleye#308
Most of the runtime errors with PG-Simple are related to incorrect DB (de)serialisation code. Is it possible to run the
FromField, ToField, FromRow, ToRow
converter functions with a set of string/bytestring obtained from a file, without involving the DB?The text was updated successfully, but these errors were encountered: