Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Allow a way to hook in to encoding/decoding for custom behaviour #1

Open
devinus opened this issue Mar 8, 2013 · 3 comments

Comments

@devinus
Copy link

devinus commented Mar 8, 2013

For example,

Decoding null to undefined when decoding from Postgres and encoding undefined to null.

@pguyot
Copy link
Contributor

pguyot commented Mar 20, 2013

What would be the API for that feature?

@devinus
Copy link
Author

devinus commented Mar 20, 2013

@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

@pguyot
Copy link
Contributor

pguyot commented Apr 28, 2017

QueryOptions are now (4980e69) passed quite deeply in simple/extended execution paths and could be used for this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants