init 0.0.0
This commit is contained in:
commit
b2333c846b
11
database.go
Normal file
11
database.go
Normal file
@ -0,0 +1,11 @@
|
||||
package database
|
||||
|
||||
type Config struct {
|
||||
Host string `toml:"host"` //数据库名称
|
||||
Port int `toml:"port"` //数据库名称
|
||||
Debug bool `toml:"debug"` //调试开关(会在日志打印SQL)
|
||||
Dbname string `toml:"dbname"` //数据库名称
|
||||
Username string `toml:"username"` //数据库用户名
|
||||
Password string `toml:"password"` //数据库连接密码
|
||||
ExtraParameters string `toml:"extra_parameters"` //数据库连接扩展参数
|
||||
}
|
Loading…
Reference in New Issue
Block a user