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

Add decode strategy control #456

Merged
merged 5 commits into from
Feb 12, 2024
Merged

Add decode strategy control #456

merged 5 commits into from
Feb 12, 2024

Conversation

bombillazo
Copy link
Collaborator

@bombillazo bombillazo commented Feb 8, 2024

FIxes #450

It gives developers control over the decoding strategy employed by the driver when returning row data.
The default is auto (the current behavior) while adding string mode so all data is returned as a string and the user can take care of parsing the data in their application.

@bombillazo
Copy link
Collaborator Author

@bartlomieju any feedback?

@bombillazo bombillazo merged commit 2785855 into main Feb 12, 2024
6 checks passed
bombillazo added a commit that referenced this pull request Feb 12, 2024
* feat: add custom parsers

* chore: fix lint issues

* chore: fix docs issue

* chore: move custom decoder function inside try catch

* chore: update code comments

* chore: add Oid related types and rever Oid map to avoid iteration and keep performance

* chore: update decoder tests to check type name, add presedence test

* Add decode strategy control (#456)

* feate: add encoding strategy control

* chore: add encoding strategy tests

* chore: fix file formatting

* chore: fix lint issue of unused import

* chore: fix variable anem to make camelcase

* chore: update decoder types, update decode logic to check for custom decoders and strategy

* chore: fix lint issue for const variable

* docs: update code commetns and create documentation for results decoding

* chore: update mode exports, fix jsdocs lint

* chore: fix file formats
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 this pull request may close these issues.

Option to control driver data return decoding strategy
1 participant