cassandra database interface https://github.com/necrobious/hscassandra

Latest on Hackage:0.0.7

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed by Kirk Peterson
#### Connecting
Connecting to cassandra is done with the withCassandra function, which takes a CassandraConfig instance, and a callback function.

withCassandra initConfig{cassandraKeyspace="MyApplication"} (do

#### Inserting
Inserts are done via the _insert_ function, taking A Column Family string name, a Key, and a a list of columns to add.

insert "Users" "kirk@glyphsoftware.com"
[ "fn" =: "Kirk"
, "ln" =: "Peterson"
, "address" =| ["street" =: "2020 NE Going", "city"=:"Portland", "state" =: "OR"]
, "gender" =: "M"

#### Retrieving
you can then pull the data back out via the _get_ function.

get "Users" "kirk@glyphsoftware.com" AllColumns

Used by 1 package:
comments powered byDisqus