TL;DR
Cassaforte is a new Clojure client for Apache Cassandra. It is built around CQL 3 and focuses on ease of use. You will likely find that using Cassandra from Clojure has never been so easy.
1.3.0
is a minor release that introduces a few minor features and
improves compatibility with Cassandra 2.0.
Changes between Cassaforte 1.2.x and 1.3.0
Clojure 1.6 By Default
The project now depends on org.clojure/clojure
version 1.6.0
. It is
still compatible with Clojure 1.4 and if your project.clj
depends on
a different version, it will be used, but 1.6 is the default now.
We encourage all users to upgrade to 1.6, it is a drop-in replacement for the majority of projects out there.
Cassandra Java Driver Update
Cassandra Java driver has been updated to 2.0.x
.
UUID Generation Helpers
clojurewerkz.cassaforte.uuids
is a new namespace that provides UUID
generation helpers:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
Hayt Update
Hayt dependency has been updated to 1.4.1
, which supports
if-not-exists
in create-keyspace
:
1 2 3 4 5 |
|
Extra Clauses Support in insert-batch
It is now possible to use extra CQL clauses for every statement in a batch insert (e.g. to specify TTL):
1 2 3 |
|
Contributed by Sam Neubardt.
Alternative where
syntax
Now it is possible to specify hash in where clause, which makes queries more composable:
1 2 3 4 |
|
Batch Insert Improvements
Clauses to be specified for each record in insert-batch
:
1 2 3 |
|
Contributed by Sam Neubardt.
News and Updates
New releases and updates are announced on Twitter. Cassaforte also has a mailing list, feel free to ask questions and report issues there.
Cassaforte is a ClojureWerkz Project
Cassaforte is part of the group of libraries known as ClojureWerkz, together with
- Langohr, a Clojure client for RabbitMQ that embraces the AMQP 0.9.1 model
- Monger, a Clojure MongoDB client for a more civilized age
- Elastisch, a minimalistic Clojure client for ElasticSearch
- EEP, a Clojure library for stream (event) processing
- Neocons, a Clojure client for the Neo4J REST API
- Quartzite, a powerful scheduling library
and several others. If you like Cassaforte, you may also like our other projects.
Let us know what you think on Twitter or on the Clojure mailing list.
About the Author
Michael on behalf of the ClojureWerkz Team.