GO SDK 使用

GO SDK 简单使用样例

下载地址

iGraph GO SDK 让 GO 开发人员可以非常方便地使用 GO 程序操作图引擎服务

SDK 地址

查询使用样例

	var client = aliyun_igraph_go_sdk.NewClient("http://igraph-cn-xxxx.igraph.aliyuncs", "username", "password", "src")
	m := make(map[string]string)
	readRequest := &aliyun_igraph_go_sdk.ReadRequest{QueryString: "GremlinQuery", QueryParams: m}
  resp, err := client.Read(*readRequest)

更新使用样例

	graphName := "graphName"
	instanceName := "igraph-cn-xxxx"
  labelName := "labelName"
  pkey := "pkfieldName"
	request := NewWriteRequest(WriteTypeAdd, instanceName, tableName, labelName, pkey, "", map[string]string{})
	request.AddContent("field1", "1")
	request.AddContent("field2", "1")
	request.AddContent("field3", "1")
	request.AddContent(pkey, "1")
	resp, err := client.Write(*request)

阿里云首页 图计算服务 Graph Compute 相关技术圈