config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 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 {
	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

Jump to

Keyboard shortcuts

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