closet icon indicating copy to clipboard operation
closet copied to clipboard

Clojure client for the Cassandra database

The clojure-cassandra project is a wrapper around the existing Java Thrift client for the Cassandra database.

Usage:

(require ['cassandra :as 'cdb])

;; Create a client and grab a table (def client (cdb/make-client "host" port)) (def table (-> client :tables :SomeTable))

;; Put some data (cdb/put table "key" :family {:col-a [1 2 3 4 5 "six" 7.0]}) (cdb/put table "key" :family {:col-b "another column"})

;; Get column values (cdb/get table "key" :family [:col-a :col-b])