Skip to content
/ erlcql Public

Cassandra native protocol CQL client for Erlang

Notifications You must be signed in to change notification settings

rpt/erlcql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

df9fe45 · Jul 10, 2014
Jul 10, 2014
Mar 3, 2014
Jul 10, 2014
Feb 13, 2014
Nov 18, 2013
Jul 10, 2014
Mar 3, 2014
Mar 3, 2014
Nov 28, 2013
Mar 24, 2014
Mar 24, 2014

Repository files navigation

erlCQL

Build Status Bitdeli Badge

Cassandra native protocol CQL Erlang client.

API

Start

erlcql:start_link(Options :: proplists:proplist()) ->
    {ok, Pid :: pid()} | {error, Reason :: term()}.

Options

Option Type Default
host string() "localhost"
port integer() 9042
username bitstring() <<"cassandra">>
password bitstring() <<"cassandra">>
cql_version bitstring() undefined
compression erlcql:compression() false
use bitstring() undefined
event_handler pid() | erlcql:event_fun() self()
auto_reconnect boolean() false
reconnect_start pos_integer() 1000
reconnect_max pos_integer() 30000
keepalive boolean() false

Query

Types

Cassandra type Erlang type
ascii bitstring()
bigint integer()
blob binary()
boolean boolean()
counter integer()
decimal float()
double float()
float float()
inet inet:ip_address()
int integer()
timestamp integer()
timeuuid erlcql:uuid()
uuid erlcql:uuid()
varchar/text bitstring()
varint integer()
list<type> list(type())
set<type> list(type())
map<key, value> list(tuple(key(), value()))
custom binary()

Notes

Versions

Supported versions: v1.