-
-
Notifications
You must be signed in to change notification settings - Fork 341
feat: 为动态SQL添加泛型参数支持 #1395
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
base: master
Are you sure you want to change the base?
feat: 为动态SQL添加泛型参数支持 #1395
Conversation
|
Add generic-type awareness and pagination/count support to dynamic SQL generator This PR is a substantial extension of Key Changes• Parser: new function Affected Areas• This summary was automatically generated by @propel-code-bot |
Co-authored-by: propel-code-bot[bot] <203372662+propel-code-bot[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, ship it! 🚢
Why was this auto-approved?
AI analysis completed with no actionable comments or suggestions.
让动态SQL支持泛型参数
What did this pull request do?
有的时候参数作为查询条件,零值是有意义的,需要实现nil的时候忽略该查询条件,尝试了泛型
原先gen版本只能解析到类型名,不带泛型参数
User Case Description
wrapper.go
原先生成效果
现在生成效果