数据库初始化

This commit is contained in:
2022-06-11 19:05:54 +08:00
parent 7cca5c5939
commit cdf075a576
2 changed files with 98 additions and 12 deletions

View File

@ -48,9 +48,10 @@ type LogConfig struct {
//
// Date : 14:47 2022/6/9
type cfgFile struct {
Path string `json:"path"` // 配置文件路径
Type string `json:"type"` // 配置文件类型
Config Mysql `json:"config"` // 解析之后的配置文件
Flag string `json:"flag"` // 数据库标识
Path string `json:"path"` // 配置文件路径
Type string `json:"type"` // 配置文件类型
Config Database `json:"config"` // 解析之后的配置文件
}
const (
@ -86,6 +87,7 @@ type Mysql struct {
Charset string `json:"charset" yaml:"charset"` // 数据库编码
Connection *Connection `json:"connection" yaml:"connection"` // 连接配置
LogFileName string `json:"log_file_name" yaml:"log_file_name"` // 日志文件名
Timezone string `json:"timezone" yaml:"timezone"` // 时区
}
// Connection 连接数配置