Skip to content

Commit

Permalink
Merge pull request #58 from ch3nnn/fix/config-database
Browse files Browse the repository at this point in the history
fix: DatabaseConf struct Type tag
  • Loading branch information
suyuan32 authored Jan 16, 2023
2 parents f823401 + 25db11c commit c21421d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type DatabaseConf struct {
Password string `json:",optional"`
DBName string `json:",optional"`
SSLMode string `json:",optional"`
Type string `json:",optional"` // "postgres" or "mysql"
Type string `json:",default=mysql,options=[mysql,postgres]"`
MaxOpenConns *int `json:",optional,default=100"`
Debug bool `json:",optional,default=false"`
CacheTime int `json:",optional,default=10"`
Expand Down

0 comments on commit c21421d

Please sign in to comment.