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

Use bigint type for Postgres BIGINT #184

Closed
galah92 opened this issue Sep 23, 2023 · 1 comment
Closed

Use bigint type for Postgres BIGINT #184

galah92 opened this issue Sep 23, 2023 · 1 comment

Comments

@galah92
Copy link

galah92 commented Sep 23, 2023

Looks like Postgres BIGINT is being parsed as string. I think it should be parsed as bigint for a NodeJS version that supports it.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

I currently override it with the following configuration:

"overrides": {
  "types": {
    "bigint": "bigint"
  }

Thank you.

P.S: amazing library, one I wish I would've written myself 👍

@Newbie012
Copy link
Collaborator

It really depends on the library that you're using. From what I tested, postgres and pg return it as a string.

Until these two packages won't switch (due to their legitimate reasons) to BigInt, I prefer keeping string as the default

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

No branches or pull requests

2 participants