def METHOD_NAME(self):
    names = ["database", "format", "format_row", "parameters", "query"]
    for config_name in names:
        if config_name == "format_row":
            if not self.py3.format_contains(self.format, config_name):
                continue
        if not getattr(self, config_name, None):
            raise Exception(f"missing {config_name}")
    self.connect = getattr(import_module(self.database), "connect")
    self.operational_error = getattr(import_module(self.database), "OperationalError")
    self.is_parameters_a_dict = isinstance(self.parameters, dict)
    if not self.is_parameters_a_dict:
        self.parameters = Path(self.parameters).expanduser()
    self.thresholds_init = {}
    for name in ("format", "format_row"):
        self.thresholds_init[name] = self.py3.get_color_names_list(getattr(self, name))