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

posts/db-enum-storage/ #15

Open
utterances-bot opened this issue Jul 29, 2024 · 1 comment
Open

posts/db-enum-storage/ #15

utterances-bot opened this issue Jul 29, 2024 · 1 comment

Comments

@utterances-bot
Copy link

数据库枚举类型应该选什么数据类型呢? :: Rectcircle Blog

背景 在某个 Go 后端项目中,一些枚举字段在程序中使用了 int8 类型定义。数据库中存储使用 tinyint。 但是随着时间的推移,读代码时通过常量名还能很容

https://www.rectcircle.cn/posts/db-enum-storage/

Copy link

赞赞赞👍

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