8000 Support for specifying ClusterConfig options · Issue #146 · gocassa/gocassa · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Support for specifying ClusterConfig options #146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jamal opened this issue Apr 24, 2016 · 3 comments
Open

Support for specifying ClusterConfig options #146

jamal opened this issue Apr 24, 2016 · 3 comments

Comments

@jamal
Copy link
jamal commented Apr 24, 2016

gocassa exposes no way for us to configure the gocql cluster config beyond setting authentication right now. It would be nice to be able to either pass a gocql.ClusterConfig when connecting to a key space, or at the very least have some alternative way of setting some of those options.

The one I'm interested in right now is ProtoVersion, as I'm trying to use Cassandra >= 3.0, which does not work with ProtoVersion 2 (the gocql default).

@lazyjin
Copy link
lazyjin commented May 26, 2016

I'm using cassandra version 3.0.6 and shoud modify gocassa code to set ProtoVersion 3.
Unless modifying code, can't connect to cassandra. I think It's better to give a way to set gocql.ClusterConfig options to avoid unneccessary code modifying .

@zeucxb
Copy link
zeucxb commented Oct 7, 2016

I need this too

@crufter
Copy link
Member
crufter commented Oct 7, 2016

There is a way to do this already: use https://godoc.org/github.com/hailocab/gocassa#GoCQLSessionToQueryExecutor and then pass the acquired QueryExecutor to https://godoc.org/github.com/hailocab/gocassa#NewConnection

This comes up often, so it should be part of the README in the form of a FAQ or something. PRs are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
0