resourceful-mongo
v0.0.3 mongodb database ODM
A MongoDB engine for resourceful, a datamapper part of the flatiron project.
Credits
Ryan Fitzgerald, Follow @TheRyanFitz on Twitter.
Warning
This project is in a very early stage, with limited functionality. Don't use in production.
Example
var resourceful = require('resourceful');
require('resourceful-mongo');
var Person = resourceful.define('person', function () {
//
// Specify use of the mongodb engine
//
this.use('mongodb', {
collection: "people" // collection must always be set when using the mongo engine
});
this.string('name');
this.number('age');
});
Installation
Installing npm (node package manager)
$ curl http://npmjs.org/install.sh | sh
Installing resourceful
$ [sudo] npm install resourceful-mongo
Tests
All tests are written with mocha and should be run with npm:
$ npm test
Author: Ryan Fitzgerald
License: Apache 2.0
npm i resourceful-mongo
Source Code
github.com/codebrew/resource...Metadata
- Unknown
- >= 0.4.0
- Ryan Fitzgerald
- released 2/17/2012