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

能加一个配置选项,让字段为u64的时候不要返回bigint吗? #43

Open
wacdev opened this issue Apr 2, 2023 · 3 comments

Comments

@wacdev
Copy link

wacdev commented Apr 2, 2023

如题
我的业务场景下,不太可能大于2^53
而bigint用起来很不方便

@sangshuduo
Copy link
Contributor

那应该返回什么?

@wacdev
Copy link
Author

wacdev commented Apr 2, 2023

就返回普通的整数
postgresql的客户端就可以自定义数据类型的解码函数
或者大于2^53的时候再返回bigint

@wacdev
Copy link
Author

wacdev commented Apr 2, 2023

比如 postgres ( https://www.npmjs.com/package/postgres ) 可以这么设置

image

比如 pg ( https://www.npmjs.com/package/pg ) 可以这么设置

image

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