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

Rows() 方法没有 #1228

Open
shuqingzai opened this issue Oct 14, 2024 · 2 comments
Open

Rows() 方法没有 #1228

shuqingzai opened this issue Oct 14, 2024 · 2 comments

Comments

@shuqingzai
Copy link

GORM Playground Link

go-gorm/playground#1

Description

文档 https://gorm.io/zh_CN/gen/query.html#Group-By-amp-Having 可以使用 Rows() 迭代结果,可生成的 gen dao 中并没有该方法?

@qqxhb
Copy link
Member

qqxhb commented Oct 19, 2024

是不是你的版本不对更新版本看看呢,这个是基础方法,在 Do上

@shuqingzai
Copy link
Author

是不是你的版本不对更新版本看看呢,这个是基础方法,在 Do上

@qqxhb Do 上确实存在 Rows 方法,但是如果生成代码使用接口模式,IxxxDo 接口不会生成该方法,导致使用时,无法引用
image

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