|
|
|
@ -25,6 +25,7 @@ type Config struct {
|
|
|
|
|
IsGUI bool `yaml:"is_gui"` //
|
|
|
|
|
IsTableName bool `yaml:"is_table_name"`
|
|
|
|
|
IsNullToPoint bool `yaml:"is_null_to_point"` // null to porint
|
|
|
|
|
IsNullToSqlNull bool `yaml:"is_null_to_sql_null"`
|
|
|
|
|
TablePrefix string `yaml:"table_prefix"` // 表前缀
|
|
|
|
|
SelfTypeDef map[string]string `yaml:"self_type_define"`
|
|
|
|
|
OutFileName string `yaml:"out_file_name"`
|
|
|
|
@ -226,6 +227,14 @@ func GetIsNullToPoint() bool {
|
|
|
|
|
return _map.IsNullToPoint
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func SetIsNullToSqlNull(b bool) {
|
|
|
|
|
_map.IsNullToSqlNull = b
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func GetIsNullToSqlNull() bool {
|
|
|
|
|
return _map.IsNullToSqlNull
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// SetTablePrefix set table prefix
|
|
|
|
|
func SetTablePrefix(t string) {
|
|
|
|
|
_map.TablePrefix = t
|
|
|
|
|