You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
goctl model only generate very a few model operation methods, common methods like BulkInsert , BulkUpdate, or SoftDelete are not provided. Why not provide these methods?
The text was updated successfully, but these errors were encountered:
dahuzihaidao
changed the title
Why not provide very common model/database operation methods such as BulkInsert , BulkUpdate, or SoftDelete?
Why not generate very common model/database operation methods such as BulkInsert , BulkUpdate, or SoftDelete via goctl model by default?
Dec 26, 2024
Got your point, however it is pretty common usage in my company and related business :)
It's better at least to provide a option for users to choose between populating more rich db operation methods or less standard set, which may suit all people's needs.
which can inlcude even more methods, like "findPageLimit". Also, it can be put into a seperate .tpl file and being included when needed.
These methods can use primary key or unique index to query, so I think it fits the cache usage.
goctl model only generate very a few model operation methods, common methods like BulkInsert , BulkUpdate, or SoftDelete are not provided. Why not provide these methods?
The text was updated successfully, but these errors were encountered: