英文:
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
答案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库。请随意开始编写一个
英文:
There is currently no library for Cassandra written in Go. Feel free to start one
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论