Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Tables []string `yaml:"tables"` // Need to generate tables, default is all tables
DBType string `yaml:"db_type"` // default: mysql
DSN string `yaml:"dsn"` // data source name (DSN) to use when connecting to the database
TablePrefix string `yaml:"table_prefix"` // table prefixed with the table name
DBTag string `yaml:"db_tag"` // db tag. default: gorm
WithJsonTag bool `yaml:"with_json_tag"` // with json tag. default: true
OutputDir string `yaml:"output_dir"` // output dir. default: ./model
PackageName string `yaml:"package_name"` // package name. default: model
}
var Cnf *Config
Click to show internal directories.
Click to hide internal directories.