Skip to content

Repository files navigation

konserve-monger

=======

A CouchDB implementation of the konserve kv-protocol on top of clutch.

Usage

Add to your leiningen dependencies: Clojars Project

The whole purpose of konserve is to have a unified associative key-value interface for edn datastructures. Just use the standard interface functions of konserve.

You can also provide a clutch db object to the new-couch-store constructor as an argument. We do not require additional settings beyond the konserve serialization protocol for the store, so you can still access the store through clutch directly wherever you need.

  (require '[konserve-monger.core :refer :all]
           '[konserve.core :as k)
  (def couch-store (<!! (new-clutch-store "my-store")))

  (<!! (k/exists? couch-store  "john"))
  (<!! (k/get-in couch-store ["john"]))
  (<!! (k/assoc-in couch-store ["john"] 42))
  (<!! (k/update-in couch-store ["john"] inc))
  (<!! (k/get-in couch-store ["john"]))

  (defrecord Test [a])
  (<!! (k/assoc-in couch-store ["peter"] (Test. 5)))
  (<!! (k/get-in couch-store ["peter"]))

Changes

0.1.2

  • binary support
  • update to konserve 0.4
  • arbitrary key length (hashing)

0.1.1

  • use new reduced konserve interface and serializers

0.1.0

  • factor out from konserve

License

Copyright © 2014-2016 Christian Weilbach

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

4ebcb611f2fb8231bc64f20afbf6194991896c59

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages