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

eorm: IN 查询支持 #101

Closed
flycash opened this issue Nov 3, 2022 · 1 comment · Fixed by #102
Closed

eorm: IN 查询支持 #101

flycash opened this issue Nov 3, 2022 · 1 comment · Fixed by #102
Labels
feature good first issue Good for newcomers

Comments

@flycash
Copy link
Contributor

flycash commented Nov 3, 2022

仅限中文

使用场景

在 WHERE 部分使用 IN 查询。目前来说,我们暂时不需要考虑子查询的问题,因为子查询的形态不同于普通的 IN 语句。

可行方案

// 用户用起来
s.Where(C("Id").In(1, 2, 3)) // WHERE `id` IN (?, ?, ?)
s.Where(C("Id").NotIn(1, 2, 3)) // WHERE `id` NOT IN (?, ?, ?)

其它

任何你觉得有利于解决问题的补充说明

你使用的是 eorm 哪个版本?

你设置的的 Go 环境?

上传 go env 的结果

@flycash flycash added feature good first issue Good for newcomers labels Nov 3, 2022
@Stone-afk
Copy link
Collaborator

这 issue 我领了,哈哈

@flycash flycash linked a pull request Nov 8, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants