Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Dialect string `yaml:"dialect" json:"dialect"` // mysql sqlite3 postgres
Username string `yaml:"username" json:"username"`
Password string `yaml:"password" json:"password"`
Protocol string `yaml:"protocol" json:"protocol"`
Host string `yaml:"host" json:"host"`
Port string `yaml:"port" json:"port"`
DbName string `yaml:"dbName" json:"dbName"`
Extend map[string]string `yaml:"extend" json:"extend"`
LogMode bool `yaml:"logMode" json:"logMode"`
}
Config 数据库配置
Click to show internal directories.
Click to hide internal directories.