Home

Awesome

Riakka

Scala library for talking to Riak.

Getting started

You need to have SBT installed. Please follow setup instructions.

git clone git://github.com/frank06/riakka.git
cd riakka
sbt
> update
> test

It assumes you're running Riak in localhost at port 8098, and will use a random bucket starting with riakka to run the suite.

Riak

First off, you should be familiar with Riak. There is information available here. Some other resources of interest:

Quick overview

Riak (through its HTTP interface, Jiak) exposes documents with some associated metadata (all in JSON format). For example:

{"bucket":"bucket", "key":"foo", "object":{"bar":"baz"}, "links":[["bucket","key","tag"], ["b2","key2","tag2"]]}"

Riakka will consistently return this structure splitted up in two: A tuple consisting of

Most query methods will also require a % object. There is a convenience method for creating those, as you will see in the following examples.

Features by example

Fire a Scala console (within sbt):

    > console

There is also support for If-None-Match, attachments and more. Have a look at RiakkaSpec.scala.

To be done

Needless to say, fork and send pull requests. And make use of Github's issue tracker, too.

Citing Paul from Ruby's RiakRest: "Go forth and Riak!"