This module provides a storage addon for Seed that allows for datasets to be stored in JSON files.
Module is available through npm. To use it in your project you must also have
as it is not provided as
npm install seed seed-filestore
Seed, which stands for storage-agnostic, event emitting datasets, is a library of components that provide a common API for working with data, no matter the source. These compoents are Hash, Model, Graph, and Schema. Redis can be one the many sources used in the construction eventful, data-centric applications.
Visit the Seed project page to learn more.
This storage engine can be used for both models and collections.
var Seed =RedisStore =dir =store = dir;var Person = SeedModel;var arthur =id: 'arthur'name: 'Arthur Dent'occupation: 'Traveller';arthur;
In short, 'querying' takes place in-process.
When fetching from a Graph, seed-filestore will load all documents of the requested type into memory then filter the result-set given a provided query. Queries must be written in using seed's included query language (which is very similiar to MongoDb's query style). For more information on constructing well-formed queries, check out Seed's documentation on query language.
var HitchhikersGuide = SeedGraph;var myGuide = ;myGuide;
$ make test
All issues related to this project should be posted in seed-filestore GitHub Issues. For all general seed related issues, please visit seed's GitHub Issues. There is also a community forum is available at the Seed Google Group.
Interested in contributing? Fork to get started. Contact @logicalparadox if you are interested in being regular contributor.
- Jake Luer (@logicalparadox)
(The MIT License)
Copyright (c) 2012 Jake Luer firstname.lastname@example.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.