mattrepl / clojure-cassandra

Clojure client for the Cassandra database

This URL has Read+Write access

name age message
file .gitignore Fri Jul 03 21:59:49 -0700 2009 more initial import [Matt Revelle]
file LICENSE Fri Jul 03 21:59:49 -0700 2009 more initial import [Matt Revelle]
file README Mon Jul 13 06:15:08 -0700 2009 fixed typo [Matt Revelle]
file build.xml Fri Jul 03 21:59:49 -0700 2009 more initial import [Matt Revelle]
directory src/ Tue Jul 14 05:08:43 -0700 2009 removed printing [Matt Revelle]
README
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])