basho / basho_bench

A load-generation and testing tool for basically whatever you can write a returning Erlang function for.
Apache License 2.0
311 stars 197 forks source link

Switch from erlcql to cqerl. #150

Closed algernon closed 9 years ago

algernon commented 9 years ago

Unfortunately, erlcql only supports CQL3 over Cassandra binary protocol v1, while for recent Cassandras, we want v2. Thankfully, cqerl supports v2, and converting the cassandra_cql driver is reasonably simple.

This patch does just that - converts from erlcql to cqerl.

The change to examples/cassandra_cql.config can be avoided, if those deps are added to escript_incl_apps in rebar.config, but I think I'm starting to realize what that is good for, and why, so I opted to add it to the example instead. Let me know if I should move them elsewhere.

slfritchie commented 9 years ago

Hi, thanks for the PR. The PR looks straightforward. I don't have a Cassandra cluster lying around to test quickly, so I'll take your word for it that it works. If I break things for another Cassandra user, I apologize in advance.