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

Basic BigInt support #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Basic BigInt support #62

wants to merge 1 commit into from

Conversation

borgar
Copy link
Owner

@borgar borgar commented Feb 26, 2025

We should not crash when passed a bigint. This patch will make it so that the formatter will convert the bigint to a number if possible, else it will emit an overflow string (#####). A setting has been added so that instead of the overflow string, a string version of the bigint is emitted instead. This is similar how date overflows are handled.

I have made an attempt at supporting bigint throughout the library with some success, but I have abandoned that because it was complicating the code a lot and I had some worries about performance.

I think partial support would be possible with low cost. But I don't have the resources to spare for that right now.

Closes #61

We should not crash when passed a bigint. This patch will make it so that
the formatter will convert the bigint to a number if possible, else it will
emit an overflow string (#####). A setting has been added so that instead
of the overflow string, a string version of the bigint is emitted instead.
This is similar how date overflows are handled.

I have made an attempt at supporting bigint throughout the library with
some success, but I have abandoned that because it was complicating the
code a lot and I had some worries about performance.

I think partial support would be possible with low cost. But I don't
have the resources to spare for that right now.

Closes #61
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.

Support bigint values
1 participant