refactor: improve flexibility and project structure #28
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "weakptr/reverse:refactor/improve-flexibility-and-project-structure"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
目的和变更概述
pkg/conf
,使目录结构和代码更清晰可读column_name
选项,生成字段ID int64
xorm:"id pk autoincr"` 这样的 tag,显式建立结构字段名和列名的映射关系。参见 #27添加了一些测试,覆盖了:
@lunny
Thanks for your contribution. One small nit, could you add an example and test for multiple targets?
And when
ColumnName
is true, you should use single quote to avoid conflict with reversed word of xorm. i.e.xorm:"'column_name'"
74004dad07
to8aef3d534c
okay. fixed.