Skip to content
/ erlcql Public
forked from rpt/erlcql

Cassandra native protocol CQL client for Erlang

Notifications You must be signed in to change notification settings

inou/erlcql

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

erlCQL Build Status

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() <<"3.1.1">>
compression erlcql:compression() false
use bitstring() undefined
event_handler pid() | erlcql:event_fun() self()

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 uuid()
uuid 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.

About

Cassandra native protocol CQL client for Erlang

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Erlang 99.8%
  • Shell 0.2%