pgsql
pgsql copied to clipboard
Feature request: Allow a way to hook in to encoding/decoding for custom behaviour
For example,
Decoding null to undefined when decoding from Postgres and encoding undefined to null.
What would be the API for that feature?
@pguyot In JSX you can pass a pre_encode and post_decode function to the encoder/decoder for custom behaviour. I imagine similar callbacks could be passed in the list of options to simple_query/extended_query
QueryOptions are now (4980e69) passed quite deeply in simple/extended execution paths and could be used for this feature.