|
@@ -11,19 +11,6 @@ type Mysql struct {
|
|
|
LogMode bool `mapstructure:"log-mode" json:"logMode" yaml:"log-mode"`
|
|
|
}
|
|
|
|
|
|
-type Postgresql struct {
|
|
|
- Host string `mapstructure:"host" json:"host" yaml:"host"`
|
|
|
- Port string `mapstructure:"port" json:"port" yaml:"port"`
|
|
|
- Config string `mapstructure:"config" json:"config" yaml:"config"`
|
|
|
- Dbname string `mapstructure:"db-name" json:"dbname" yaml:"db-name"`
|
|
|
- Username string `mapstructure:"username" json:"username" yaml:"username"`
|
|
|
- Password string `mapstructure:"password" json:"password" yaml:"password"`
|
|
|
- MaxIdleConns int `mapstructure:"max-idle-conns" json:"maxIdleConns" yaml:"max-idle-conns"`
|
|
|
- MaxOpenConns int `mapstructure:"max-open-conns" json:"maxOpenConns" yaml:"max-open-conns"`
|
|
|
- PreferSimpleProtocol bool `mapstructure:"prefer-simple-protocol" json:"preferSimpleProtocol" yaml:"prefer-simple-protocol"`
|
|
|
- Logger bool `mapstructure:"logger" json:"logger" yaml:"logger"`
|
|
|
-}
|
|
|
-
|
|
|
type Sqlite struct {
|
|
|
Path string `mapstructure:"path" json:"path" yaml:"path"`
|
|
|
MaxIdleConns int `mapstructure:"max-idle-conns" json:"maxIdleConns" yaml:"max-idle-conns"`
|
|
@@ -41,3 +28,16 @@ type Sqlserver struct {
|
|
|
Logger bool `mapstructure:"logger" json:"logger" yaml:"logger"`
|
|
|
}
|
|
|
|
|
|
+type Postgresql struct {
|
|
|
+ Host string `mapstructure:"host" json:"host" yaml:"host"`
|
|
|
+ Port string `mapstructure:"port" json:"port" yaml:"port"`
|
|
|
+ Config string `mapstructure:"config" json:"config" yaml:"config"`
|
|
|
+ Dbname string `mapstructure:"db-name" json:"dbname" yaml:"db-name"`
|
|
|
+ Username string `mapstructure:"username" json:"username" yaml:"username"`
|
|
|
+ Password string `mapstructure:"password" json:"password" yaml:"password"`
|
|
|
+ MaxIdleConns int `mapstructure:"max-idle-conns" json:"maxIdleConns" yaml:"max-idle-conns"`
|
|
|
+ MaxOpenConns int `mapstructure:"max-open-conns" json:"maxOpenConns" yaml:"max-open-conns"`
|
|
|
+ PreferSimpleProtocol bool `mapstructure:"prefer-simple-protocol" json:"preferSimpleProtocol" yaml:"prefer-simple-protocol"`
|
|
|
+ Logger bool `mapstructure:"logger" json:"logger" yaml:"logger"`
|
|
|
+}
|
|
|
+
|