项目作者: rpt

项目描述 :
Cassandra native protocol CQL client for Erlang
高级语言: Erlang
项目地址: git://github.com/rpt/erlcql.git
创建时间: 2013-11-18T09:43:46Z
项目社区:https://github.com/rpt/erlcql

开源协议:

下载


erlCQL

Build Status
Bitdeli Badge

Cassandra native protocol CQL Erlang client.

API

Start

  1. erlcql:start_link(Options :: proplists:proplist()) ->
  2. {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 list(type())
set list(type())
map list(tuple(key(), value()))
custom binary()

Notes

Versions

Supported versions: [v1][proto_v1].

[proto_v1]:
https://raw.github.com/apache/cassandra/trunk/doc/native_protocol_v1.spec