How to create graph traversal in dse graph using golang

huangapple go评论65阅读模式
英文:

How to create graph traversal in dse graph using golang

问题

有没有其他方法可以在控制台上连接到Gremlin服务器而不使用:remote?

我正在使用GOLANG与DSE图形进行通信。Datastax没有为golang提供驱动程序,所以我被迫使用Gremlin服务器发送Gremlin查询(go-gremlin和gremgo有一些GREMLIN插件)。我可以使用system.graph('test_graph').create()创建图形,但我找不到任何遍历图形的方法。

英文:

Is there any other way to connect to gremlin server from console without using :remote.

I am using GOLANG to talk to DSE graph. Datastax doesn't provide driver for golang so i am forced use gremlin server to send gremlin queries (there are few GREMLIN plugins for go-gremlin and gremgo). I can create graph using system.graph('test_graph').create() but i am not finding any way to get g for traversing the graph.

答案1

得分: 1

DSE Graph要求您在请求中传递一个别名,将g绑定到test_graph.g,其中test_graph是您的图的名称。关于如何执行此操作,go-gremlin已经有一个问题进行了解释:https://github.com/go-gremlin/gremlin/issues/4

英文:

DSE Graph requires you to pass an alias with your request to bind g to test_graph.g where test_graph is the name of your graph. There is already an issue for go-gremlin that explains how to do that: https://github.com/go-gremlin/gremlin/issues/4

huangapple
  • 本文由 发表于 2016年11月23日 22:21:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/40766988.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定