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

Parse/decode numeric columns as float/int #432

Closed
bombillazo opened this issue Sep 6, 2023 · 2 comments · Fixed by #444
Closed

Parse/decode numeric columns as float/int #432

bombillazo opened this issue Sep 6, 2023 · 2 comments · Fixed by #444
Labels
enhancement New feature or request

Comments

@bombillazo
Copy link
Collaborator

bombillazo commented Sep 6, 2023

Hello, is there any way to parse numeric column values as int to float? We are currently getting all values from our DB that are numeric as string.

I saw they library uses some decoders internally, is there any way to customize what fields one wants to parse as number to string?

@bombillazo bombillazo changed the title Parse Numeric columns as float/int Parse/decode numeric columns as float/int Sep 6, 2023
@bombillazo
Copy link
Collaborator Author

@bombillazo
Copy link
Collaborator Author

After consideration, numeric is not safe to automatically parse to float or int due to value storage limits of the JS ints and floats. So, the proper approach is to return a string and give the developers an API that allows them to control the numeric type parsing as they need.

@bombillazo bombillazo closed this as not planned Won't fix, can't repro, duplicate, stale Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant