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

support expr #2

Closed
liyongjing opened this issue Jul 21, 2019 · 3 comments
Closed

support expr #2

liyongjing opened this issue Jul 21, 2019 · 3 comments

Comments

@liyongjing
Copy link
Contributor

I want add basic expr such as NotEq, NotLike,Lt,LtOrEq,Gt, GtOrEq etc
one api definition such as

func WhereLike(col string, val interface{}) Option{}
func WhereEq(col string, val interface{}) Option {}
func WhereNotEq(col string, val interface{}) Option {}

one api defintion such as

const (
	OpEq   = "="
	OpGt   = ">"
	OpGtOrEq = ">="
	OpLt   = "<"
	OpLike = "LIKE"
)
func Where(col string, op string, val interface{}) Option {}

which?

@andrewpillar
Copy link
Owner

andrewpillar commented Jul 21, 2019 via email

@liyongjing
Copy link
Contributor Author

Which is better for public api defintion? internal implement separately with basic operators and complexity operators.

@andrewpillar
Copy link
Owner

andrewpillar commented Jul 21, 2019 via email

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