pgtyped icon indicating copy to clipboard operation
pgtyped copied to clipboard

Parse big integers as BigInt

Open adelsz opened this issue 5 years ago • 2 comments

Allow parsing big integers into JS BigInt. This should be exposed as an override-able config option bigInt: bigint | string | number.

adelsz avatar Jul 25 '20 07:07 adelsz

Any way I can help out on this?

jb-reefer avatar Jul 30 '20 20:07 jb-reefer

Any updates on this? Without this feature I can hardly imagine any use of this library in production.

technic avatar May 26 '22 08:05 technic

Wondering about this one as well

karibertils avatar Oct 07 '22 01:10 karibertils

@adelsz , any update? And thanks for this package :)

roei3000b avatar Feb 09 '23 14:02 roei3000b

@technic @roei3000b @karibertils @jb-reefer

This is possible in v2.1.0 using a type override. We now have a test case demonstrating this too: https://github.com/adelsz/pgtyped/commit/eae091b4d8da5026d355e920b63ccc7d5fc5a3b3

There is a section in the docs on this too: https://pgtyped.vercel.app/docs/typing

adelsz avatar Feb 09 '23 15:02 adelsz