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

Option to control driver data return decoding strategy #450

Closed
Tracked by #364
bombillazo opened this issue Feb 5, 2024 · 0 comments · Fixed by #456
Closed
Tracked by #364

Option to control driver data return decoding strategy #450

bombillazo opened this issue Feb 5, 2024 · 0 comments · Fixed by #456
Assignees

Comments

@bombillazo
Copy link
Collaborator

bombillazo commented Feb 5, 2024

Is your feature request related to a problem? Please describe.

Currently, the deno-postgres driver is hardcoded to parse values to JS types wherever possible and return strings where the parsing/decoding is not implemented. There is no way to opt out of this behavior if developers want to handle parsing in their applications.

Describe the solution you'd like

Have a Client option that allows users to set the parse mode to string or auto

Both modes are overridable with some API to pass custom parser per oid type, giving users complete power over how they want any data type to be parsed by the library. (#239)

Describe alternatives you've considered

Directly changing the package source code in my application to override the behavior.

Additional context

N/A

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

Successfully merging a pull request may close this issue.

1 participant