Go语言中的Cassandra数据存储客户端

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

Cassandra datastore client in Go language

问题

在Go语言中编写Cassandra数据存储的客户端是否可行?

英文:

Is it possible to write client for Cassandra datastore in Go language?

答案1

得分: 8

我今天在浏览中寻找同样的东西,但没有找到任何客户端。

然而,我在GitHub上找到了一个仓库,似乎有人正在为Go开发Thrift生成器:http://github.com/anatol/thrift

英文:

I was browsing today for the same thing and didn't find any client.

However I found a repo on GitHub, it appears somebody is working on Thrift generators for Go: http://github.com/anatol/thrift

答案2

得分: 4

gocql 是一个用于在Go语言中与Cassandra进行交互的活跃维护的本地CQL客户端库。最初的tux21b项目已经转变为一个GitHub组织,以便该项目可以由一组核心维护者提供支持。

如果您希望使用比gocql更高级的东西,您可以考虑使用cqlc,它是在gocql的基础上构建的。cqlc可以根据您的Cassandra模式生成Go代码,以便您可以在Go中使用类型安全的CQL语句和自然的查询语法。如果需要,它仍然可以完全访问底层的gocql API。

英文:

gocql is actively maintained native CQL client library for Cassandra in Go. The original tux21b project was turned into a GitHub organization so that the project could be supported by a core group of maintainers.

If you would prefer something less low level than gocql, you could consider cqlc, which builds on top of gocql. cqlc generates Go code from your Cassandra schema so that you can write type safe CQL statements in Go with a natural query syntax. It still gives you full access to the underlying gocql API if you need it.

答案3

得分: 3

我认为自从问题首次提出以来,对此问题的答案已经发生了变化。我相信目前在“Golang Cassandra客户端”竞争中的领先者是Gossie:

https://github.com/carloscm/gossie

还有另一个项目,cass,但其作者推荐使用Gossie:

https://github.com/araddon/cass

英文:

I think the answer to this has changed since the question was first asked. I believe the current frontrunner in the "Golang Cassandra client" race is Gossie:

https://github.com/carloscm/gossie

There is also another project, cass, but its author recommends Gossie

https://github.com/araddon/cass

答案4

得分: 3

目前最好的Cassandra客户端是github.com/tux21b/gocql,然而这很可能在接下来的几个月内发生变化。

英文:

The best Cassandra client is currently github.com/tux21b/gocql, however that's likely to change in the next few months.

答案5

得分: 0

最常用的访问Cassandra的方式是通过Thrift接口。Thrift支持C++、C#、Erlang、Haskell、Java、Objective C/Cocoa、OCaml、Perl、PHP、Python、Ruby和Squeak的生成器。所以很遗憾,没有原生的GO支持。
请查看http://github.com/anatol/thrift。不了解其质量情况。

英文:

The most common way to access Cassandra is via the Thrift interface.
Thrift has generators for C++, C#, Erlang, Haskell, Java, Objective C/Cocoa, OCaml, Perl, PHP, Python, Ruby, and Squeak. So unfortunately no GO support out of the box.
Take a look at http://github.com/anatol/thrift. Dont know anything about the quality

答案6

得分: -1

目前还没有用Go语言编写的Cassandra库。请随意开始编写一个 Go语言中的Cassandra数据存储客户端

英文:

There is currently no library for Cassandra written in Go. Feel free to start one Go语言中的Cassandra数据存储客户端

huangapple
  • 本文由 发表于 2010年4月8日 02:06:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/2594769.html
匿名

发表评论

匿名网友

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

确定