go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

When generating MySQL code, it is recommended to add custom query functions to enhance flexibility and adaptability, allowing for more efficient and tailored querying capabilities.

Open xuxiaofan1101 opened this issue 1 year ago • 2 comments

When generating MySQL code with a model, in addition to unique indexes being able to generate query functions, it is recommended to provide a keyword that allows fields with non-unique indexes to also generate corresponding query functions. This way, manual modifications to the generated code of the model can be avoided.

xuxiaofan1101 avatar Apr 10 '23 03:04 xuxiaofan1101

You don't need to change the XXX_gen.go, you can change another file that we'll not overwrite it.

kevwan avatar Apr 18 '23 14:04 kevwan

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Apr 20 '24 01:04 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jul 19 '24 01:07 github-actions[bot]