package dbx // DBConfig provides a template for database connection configuration compatible // with go-toolkit/config. If used as a field in a struct, remember to include // the `validate:"dive"` tag to ensure that the validator checks sub-fields. type DBConfig struct { User string `validate:"required"` Password string `validate:"required"` Path string `validate:"hostname_port,required"` Name string `validate:"required"` MaxConn int `validate:"min=1,max=1000"` AutoMigrate bool DebugLog bool }