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

不规范命名问题 #125

Closed
fuckqqcom opened this issue Aug 25, 2023 · 2 comments
Closed

不规范命名问题 #125

fuckqqcom opened this issue Aug 25, 2023 · 2 comments

Comments

@fuckqqcom
Copy link

如题:

gt:大于(greater than)
gte:大于等于(greater than or equal)
lt::小于(less than)
lte:小于等于(less than or equal)
eq:等于(equal)
neq:不等于

[Cond.Equal](https://pkg.go.dev/github.com/huandu/go-sqlbuilder#Cond.Equal)/[Cond.E](https://pkg.go.dev/github.com/huandu/go-sqlbuilder#Cond.E): field = value.
[Cond.NotEqual](https://pkg.go.dev/github.com/huandu/go-sqlbuilder#Cond.NotEqual)/[Cond.NE](https://pkg.go.dev/github.com/huandu/go-sqlbuilder#Cond.NE): field <> value.
[Cond.GreaterThan](https://pkg.go.dev/github.com/huandu/go-sqlbuilder#Cond.GreaterThan)/[Cond.G](https://pkg.go.dev/github.com/huandu/go-sqlbuilder#Cond.G): field > value.
[Cond.GreaterEqualThan](https://pkg.go.dev/github.com/huandu/go-sqlbuilder#Cond.GreaterEqualThan)/[Cond.GE](https://pkg.go.dev/github.com/huandu/go-sqlbuilder#Cond.GE): field >= value.
[Cond.LessThan](https://pkg.go.dev/github.com/huandu/go-sqlbuilder#Cond.LessThan)/[Cond.L](https://pkg.go.dev/github.com/huandu/go-sqlbuilder#Cond.L): field < value.
[Cond.LessEqualThan](https://pkg.go.dev/github.com/huandu/go-sqlbuilder#Cond.LessEqualThan)/[Cond.LE](https://pkg.go.dev/github.com/huandu/go-sqlbuilder#Cond.LE): field <= value.

有时候不规范,很容易让人不细看代码会误解的

@fuckqqcom fuckqqcom changed the title 不分命令不规范问题 不规范命名问题 Aug 25, 2023
@huandu
Copy link
Owner

huandu commented Aug 27, 2023

好,下个版本我加上标准化的缩写。

@fuckqqcom
Copy link
Author

好,下个版本我加上标准化的缩写。

谢谢楼主,辛苦啦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants