mattrepl / clojure-cassandra
- Source
- Commits
- Network (3)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
Matt Revelle (author)
Tue Jul 14 05:08:43 -0700 2009
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Fri Jul 03 21:59:49 -0700 2009 | |
| |
LICENSE | Fri Jul 03 21:59:49 -0700 2009 | |
| |
README | Mon Jul 13 06:15:08 -0700 2009 | |
| |
build.xml | Fri Jul 03 21:59:49 -0700 2009 | |
| |
src/ | Tue Jul 14 05:08:43 -0700 2009 |
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])
