https://github.com/rj/erlang-cassandra-cql
cassandra driver in erlang that speaks native cassandra protocol
https://github.com/rj/erlang-cassandra-cql
Last synced: 16 days ago
JSON representation
cassandra driver in erlang that speaks native cassandra protocol
- Host: GitHub
- URL: https://github.com/rj/erlang-cassandra-cql
- Owner: RJ
- License: bsd-2-clause
- Created: 2012-12-23T21:25:34.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-02-10T18:17:08.000Z (over 12 years ago)
- Last Synced: 2025-05-02T08:51:12.990Z (19 days ago)
- Language: Erlang
- Size: 111 KB
- Stars: 22
- Watchers: 6
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## Cassandra CQL Client
* Woefully incomplete and untested
* Speaks the [Cassandra native binary protocol](https://github.com/apache/cassandra/blob/trunk/doc/native_protocol.spec#L167) for CQL queries
* Does not use Thrift
* You'll need to set ````start_native_transport: true```` in
````cassandra.yaml````### Quickstart
````
rebar compile
erl -pa ebin -boot start_sasl{ok, Pid} = ecql_connection:start_link().
ecql_connection:q(Pid, <<"USE my_keyspace">>).
ecql_connection:q(Pid, <<"SELECT * from my_table LIMIT 3">>, one).
````