https://github.com/thheller/cassandra-erl
UNMAINTAINED! hopefully some kind of usable cassandra client, hiding the horrible thrift api.
https://github.com/thheller/cassandra-erl
Last synced: 12 months ago
JSON representation
UNMAINTAINED! hopefully some kind of usable cassandra client, hiding the horrible thrift api.
- Host: GitHub
- URL: https://github.com/thheller/cassandra-erl
- Owner: thheller
- Created: 2011-07-03T15:42:48.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2011-07-03T16:23:16.000Z (almost 15 years ago)
- Last Synced: 2025-06-21T00:03:52.885Z (12 months ago)
- Language: Erlang
- Homepage:
- Size: 101 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Basic Wrapper for the Cassandra 0.8 Thrift Bindings.
I wanted to play with Cassandra from erlang and the default Thrift Bindings are horrible, so I made this. Might be just as horrible but works for me.
## EXAMPLE
C = cassandra_client:connect([{host, "localhost"}, {port, 9160}, {keyspace, "test"}]),
{ok, Version} = C:describe_version(),
ConsistencyLevel = one,
ok = C:mutate([
{"row", "cf", {insert, [{"col", "value"}]}
], ConsistencyLevel),
{ok, Columns} = C:get_column_slice("row", "cf", [{count, 10}], ConsistencyLevel),
% return values from cassandra are binaries
Columns = [{<<"col">>, <<"value">>}].
## Docs
Basic edoc at: http://thheller.github.com/cassandra-erl/
## TODO
* SuperColumns
* Error Handling (pure let-it-crash for now)
* Ring Detection, Client Pooling, Reconnects, etc.