![Build Status](https://camo.githubusercontent.com/a5ac542d331a0dd5da36a32b1ad246b237d16fbfbd54c9707a823fee20b7aa2e/68747470733a2f2f7472617669732d63692e6f72672f7270742f65726c63716c2e706e67)
Cassandra native protocol CQL Erlang client.
erlcql:start_link(Options :: proplists:proplist()) ->
{ok, Pid :: pid()} | {error, Reason :: term()}.
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 |
default_timeout |
pos_integer() |
5000 |
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() |
Supported versions: v1
, v2