|
|
@ -11,6 +11,7 @@ type Config struct {
|
|
|
|
IsJSONTag bool `yaml:"is_json_tag"`
|
|
|
|
IsJSONTag bool `yaml:"is_json_tag"`
|
|
|
|
SingularTable bool `yaml:"singular_table"`
|
|
|
|
SingularTable bool `yaml:"singular_table"`
|
|
|
|
IsForeignKey bool `yaml:"is_foreign_key"`
|
|
|
|
IsForeignKey bool `yaml:"is_foreign_key"`
|
|
|
|
|
|
|
|
IsOutSQL bool `yaml:"is_out_sql"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// MysqlDbInfo mysql database information. mysql 数据库信息
|
|
|
|
// MysqlDbInfo mysql database information. mysql 数据库信息
|
|
|
@ -82,3 +83,8 @@ func GetIsForeignKey() bool {
|
|
|
|
func SetForeignKey(b bool) {
|
|
|
|
func SetForeignKey(b bool) {
|
|
|
|
_map.IsForeignKey = b
|
|
|
|
_map.IsForeignKey = b
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// GetIsOutSQL if is output sql .
|
|
|
|
|
|
|
|
func GetIsOutSQL() bool {
|
|
|
|
|
|
|
|
return _map.IsOutSQL
|
|
|
|
|
|
|
|
}
|
|
|
|