Skip to content

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

OptionTypeDefault
hoststring()"localhost"
portinteger()9042
usernamebitstring()<<"cassandra">>
passwordbitstring()<<"cassandra">>
cql_versionbitstring()undefined
compressionerlcql:compression()false
usebitstring()undefined
event_handlerpid() | erlcql:event_fun()self()
auto_reconnectboolean()false
reconnect_startpos_integer()1000
reconnect_maxpos_integer()30000
keepaliveboolean()false
default_timeoutpos_integer()5000

Query

Types

Cassandra typeErlang type
asciibitstring()
bigintinteger()
blobbinary()
booleanboolean()
counterinteger()
decimalfloat()
doublefloat()
floatfloat()
inetinet:ip_address()
intinteger()
timestampinteger()
timeuuiderlcql:uuid()
uuiderlcql:uuid()
varchar/textbitstring()
varintinteger()
list<type>list(type())
set<type>list(type())
map<key, value>list(tuple(key(), value()))
custombinary()

Notes

Versions

Supported versions: v1, v2

About

Cassandra native protocol CQL client for Erlang

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages