Documentation ¶
Index ¶
- func DiffPluralize(word, suffix string) string
- func ExecReverseSettings(cfg config.IReverseSettings, names ...string) error
- func GenModelInitFile(target config.ReverseTarget, imports map[string]string) error
- func GetCreatedColumn(table *schemas.Table) string
- func GetSinglePKey(table *schemas.Table) string
- func Reverse(source *config.DataSource, target *config.ReverseTarget) error
- func RunReverse(source *config.ReverseSource, target *config.ReverseTarget) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffPluralize ¶ added in v0.3.1
如果复数形式和单数相同,人为增加后缀
func ExecReverseSettings ¶ added in v0.3.2
func ExecReverseSettings(cfg config.IReverseSettings, names ...string) error
func GenModelInitFile ¶ added in v0.9.1
func GenModelInitFile(target config.ReverseTarget, imports map[string]string) error
func GetCreatedColumn ¶ added in v0.9.1
func GetSinglePKey ¶ added in v0.3.2
func Reverse ¶
func Reverse(source *config.DataSource, target *config.ReverseTarget) error
func RunReverse ¶
func RunReverse(source *config.ReverseSource, target *config.ReverseTarget) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.