func (c Config) MySQLConnMaxLifetime() time.Duration {
	switch {
	case c.configFileSettings.MySQLConfig.ConnMaxLifetime != nil:
		return time.Minute * time.Duration(
			*c.configFileSettings.MySQLConfig.ConnMaxLifetime,
		)
	default:
		return defaultMySQLConnMaxLifetime
	}
}
// MySQLConnMaxLifetime returns the user-provided maximum lifetime in minutes
// for database connections to the MySQL server ued by this application or the
// default value if not provided. See also
// https://github.com/go-sql-driver/mysql#important-settings
MySQLConnMaxLifetime returns the user-provided maximum lifetime in minutes
for database connections to the MySQL server ued by this application or the
default value if not provided.
// MySQLConnMaxLifetime returns the user - provided maximum lifetime in minutes // for database connections to the MySQL server ued by this application or the // default value if not provided . See also // https : // github . com / go - sql - driver / mysql#important - settings
func (c Config) MySQLConnMaxLifetime() time.Duration {
	switch {
	case c.configFileSettings.MySQLConfig.ConnMaxLifetime != nil:
		return time.Minute * time.Duration(
			*c.configFileSettings.MySQLConfig.ConnMaxLifetime,
		)
	default:
		return defaultMySQLConnMaxLifetime
	}
}
func ( c Config ) MySQLConnMaxLifetime ( ) time . Duration { switch { case c . configFileSettings . MySQLConfig . ConnMaxLifetime != nil : return time . Minute * time . Duration ( * c . configFileSettings . MySQLConfig . ConnMaxLifetime , ) default : return defaultMySQLConnMaxLifetime } }
MySQLConnMaxLifetime returns the user-provided maximum lifetime in minutes
for database connections to the MySQL server ued by this application or the
default value if not provided.
MySQLConnMaxLifetime returns the user - provided maximum lifetime in minutes for database connections to the MySQL server ued by this application or the default value if not provided .