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

优化struct对join的支持 #164

Open
Sora233 opened this issue Aug 26, 2024 · 3 comments
Open

优化struct对join的支持 #164

Sora233 opened this issue Aug 26, 2024 · 3 comments

Comments

@Sora233
Copy link

Sora233 commented Aug 26, 2024

现在struct如果有join并不是很灵活,一些方面:

  • Select()不能增加字段
  • join的字段如果在struct里面,不能默认without
  • 一些有多个struct的情况
@huandu
Copy link
Owner

huandu commented Aug 27, 2024

Select()不能增加字段

这个我考虑增加一个 SelectMore(col ...string) 来允许追加更多的字段到 SELECT 里面。

join的字段如果在struct里面,不能默认without

这个不太明白什么意思,是说 WithoutTag 相关的一个功能需求吗?

一些有多个struct的情况

请给一些例子,我看看怎么能优化相关的 API,感谢。

@huandu
Copy link
Owner

huandu commented Sep 5, 2024

@Sora233 可以补充一下更多信息吗,这样我能明白你期望的功能是什么。多谢。

@huandu
Copy link
Owner

huandu commented Sep 8, 2024

我在最新版本里面给 SelectBuilder 增加了 SelectMore 方法,可以实现追加更多的字段到 SELECT 里面。

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