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

Does orm lookup syntax support the gdb.Model type? Now the query results of a statement can only be written in native sql #4225

Open
zc24 opened this issue Mar 26, 2025 · 2 comments
Labels

Comments

@zc24
Copy link

zc24 commented Mar 26, 2025

Is your feature request related to a problem?

Option Yes

Describe the solution you'd like

Does orm lookup syntax support the gdb.Model type? Now the query results of a statement can only be written in native sql

example:
d.Ctx(ctx).As("a").InnerJoin(d.Ctx(ctx).Fields("min(id)").Group("brand"), "a.id = b.id")

Describe alternatives you've considered

example:
d.Ctx(ctx).As("a").InnerJoin(d.Ctx(ctx).Fields("min(id)").Group("brand"), "a.id = b.id")

Additional

No response

@zc24 zc24 added the feature label Mar 26, 2025
@chaegumi
Copy link

你看一下gdb.Raw是不是你想要的https://goframe.org/docs/core/gdb-senior-raw-sql

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Please see if gdb.Raw is what you want https://goframe.org/docs/core/gdb-senior-raw-sql

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

No branches or pull requests

3 participants