如何使用 Aerospike Go 客户端获取集合列表?

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

How to get list of sets with Aerospike go client?

问题

使用Aerospike的golang客户端,可以通过执行"SHOW SETS"查询来获取命名空间中所有可用集合的列表。

英文:

With Aerospike aql tool it's possible to execute "SHOW SETS" query and get list of all available sets in a namespace. But how to get this list with Aerospike golang client?

答案1

得分: 5

你正在寻找“info”命令。

https://godoc.org/github.com/aerospike/aerospike-client-go#RequestInfo

根据你的请求,你需要调用“sets”命令。

http://www.aerospike.com/docs/reference/info/#sets

英文:

You are looking for the "info" commands.

https://godoc.org/github.com/aerospike/aerospike-client-go#RequestInfo

For your request, you will need to invoke the "sets" command.

http://www.aerospike.com/docs/reference/info/#sets

huangapple
  • 本文由 发表于 2015年7月8日 21:59:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/31294985.html
匿名

发表评论

匿名网友

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

确定