cubby
a cubby that uses mysql
works well as a simple json datastore
installation
$ npm install cubby-mysql
usage
var mysql = Cubby = connection = mysql; connection; var cubby = connection: connection /*table: '', name: ''*/; cubby;
or
cubby;
multiple cubbies
by default creating a cubby will result in a cubby table with a row named default, you may override them like this
var cubbyOne = connection: connection table: 'datastore' name: 'one' cubbyTwo = connection: connection table: 'datastore' name: 'two';
paths
cubby;cubby;cubby; // returns undefined when value doesn't exist