0.0.0 • Published 12 years ago
model-memory-sync v0.0.0
model-memory-sync
In memory storage for node-model. Useful for testing.
Installation
npm install model-memory-sync
Example
var model = require('node-model')
var Post = model('Post')
.attr('id')
.attr('title')
.attr('body')
Post.sync = require('model-memory-sync')
var post = new Post({title: "My Awesome Post", body: "Is awesome"})
post.save(function(err) {
...
})
Tests
npm test
0.0.0
12 years ago