config

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TableRegexs      []string `yaml:"table_regexs"`       // 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
	WithDefaultValue bool     `yaml:"with_default_value"` // with default value. default: false
}
var Cnf *Config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL