a lightweight key / value store wherein the value is expected to be a JSON object
Pull request Compare This branch is 452 commits behind brianleroux:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
spec
src
util
.gitignore
LICENSE
README.md
Rakefile

README.md

Lawnchair

JSON key / value storage.

A very lightweight key / value store wherein the key is a simple string and the value is expected to be a JSON object.

Features

  • micro tiny storage without the nasty SQL: pure and delicious JSON
  • clean and simple oo design with one db table per store
  • key/value store.. except you don't even have to care about the keys if you don't want to
  • happily and handily will treat your store as an array of objects
  • built on SQLite CRUD
  • searching and therefore finding of objects
  • conforms to the jetpack spec and adds some love based on pragmatic usage.

Example usage

var store = new Lawnchair({table:'test'});

store.find( function(o){ return o.name == 'foo' }, function(o) { return o.captilalize(); } );

TODO