go-xorm / cmd

Command line tools for database operation written by Go, moved to https://gitea.com/xorm/cmd
BSD 3-Clause "New" or "Revised" License
168 stars 77 forks source link

添加一个将所有的数据转化成大写的函数,并在模板中添加一些常量 #60

Closed bjzhang03 closed 5 years ago

bjzhang03 commented 5 years ago

1.添加一个将字符转化成大写的函数 2.在模板中自动按照表的名字,列的名字生成枚举变量

lunny commented 5 years ago

I think you should not change the default template and you can create yourself template. Otherwise LGTM.

bjzhang03 commented 5 years ago

默认的模板里面缺少数据常量,并且没有这样的生成函数,添加生成函数和模板示例方便以后的使用。

bjzhang03 commented 5 years ago

I think you should not change the default template and you can create yourself template. Otherwise LGTM.

你的说法是,我应该把函数加上,同时并不修改模板

bjzhang03 commented 5 years ago

I think you should not change the default template and you can create yourself template. Otherwise LGTM.

已经删除了对模板的改动,仅添加了一个 将表名等全部变成大写的操作函数