lpgauth/cassanderl — pull request #7 by jlouis (2012-07-17 13:23:47+00:00)
Title: Jlouis with cassandra

This implements a new way of interacting with cassandra and it is slightly controversial. Please look at it before merging. The idea is to be able to only check out the connection once. As an example, write:

with_cassandra(Config, fun(Client) -> Body end).

And then inside the `Body` be able to issue cassanderl:call(Client, ...) obtaining the direct path to the underlying thrift call.

It is controversial because it has to do some "magic" when catching errors, rethrowing the exception in the right way. But I think this is the only way to do it. If you can find a simpler way of doing it, I am all ears.