def _source_config_to_source_type()

in migration_toolkit/migration_config.py [0:0]


def _source_config_to_source_type(source_config):
  source_config_json = json.loads(type(source_config).to_json(source_config))
  return (
      SourceType.MYSQL
      if source_config_json.get("mysqlSourceConfig") is not None
      else SourceType.ORACLE
  )