go-zero
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.
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.
You don't need to change the XXX_gen.go, you can change another file that we'll not overwrite it.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.