MCPcopy
hub / github.com/writefreely/writefreely / UseMySQL

Method UseMySQL

config/config.go:224–230  ·  view source on GitHub ↗

UseMySQL resets the Config's Database to use default values for a MySQL setup.

(fresh bool)

Source from the content-addressed store, hash-verified

222
223// UseMySQL resets the Config's Database to use default values for a MySQL setup.
224func (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.
233func (cfg *Config) UseSQLite(fresh bool) {

Callers 2

NewFunction · 0.95
ConfigureFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected