UseMySQL resets the Config's Database to use default values for a MySQL setup.
(fresh bool)
| 222 | |
| 223 | // UseMySQL resets the Config's Database to use default values for a MySQL setup. |
| 224 | func (cfg *Config) UseMySQL(fresh bool) { |
| 225 | cfg.Database.Type = "mysql" |
| 226 | if fresh { |
| 227 | cfg.Database.Host = "localhost" |
| 228 | cfg.Database.Port = 3306 |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | // UseSQLite resets the Config's Database to use default values for a SQLite setup. |
| 233 | func (cfg *Config) UseSQLite(fresh bool) { |