def read_config(self, config):
        self.event_cache_size = self.parse_size(
            config.get("event_cache_size", "10K")
        )

        self.database_config = config.get("database")

        if self.database_config is None:
            self.database_config = {
                "name": "sqlite3",
                "args": {},
            }

        name = self.database_config.get("name", None)
        if name == "psycopg2":
            pass
        elif name == "sqlite3":
            self.database_config.setdefault("args", {}).update({
                "cp_min": 1,
                "cp_max": 1,
                "check_same_thread": False,
            })
        else:
            raise RuntimeError((name,) % "Unsupported database type '%s'")

        self.set_databasepath(config.get("database_path"))
dataset/ETHPy150Open matrix-org/synapse/synapse/config/database.py/DatabaseConfig.read_config/swapped operands of `%`