Skip to content

Memory persistence layer for Modella. Useful for development or as a reference implementation for Modella storage plugins.

Notifications You must be signed in to change notification settings

alexmingoia/modella-memory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

modella-memory

Build Status

Memory persistence layer for Modella. Useful for development or as a reference implementation for Modella storage plugins.

Installation

npm install modella-memory

Example

var modella = require('modella');
var memory = require('modella-memory');

var User = modella('User');

User.use(memory());

API

Model.find(id, fn(err, model))

Find model with given id.

Model.all(fn(err, collection))

Find all models.

MIT Licensed

About

Memory persistence layer for Modella. Useful for development or as a reference implementation for Modella storage plugins.

Resources

Stars

Watchers

Forks

Packages

No packages published