Hi,

I have been working on building a simple to use ODM for Node.js and 
Couchbase and am looking for suggestions and trying to gauge how much 
interest exists for such a tool.

https://github.com/brett19/node-ottoman


Currently it supports quite a few things, here is an example:

var User = Ottoman.model('User', {
  'username': 'string',
  'name': 'string',
  'email': 'string'}, {
  bucket: new couchbase.Connection({})});
var test = new User();test.username = 'brett19';test.name = 'Brett 
Lawson';test.email = '[email protected]';
Ottoman.save(test, function(err) {
  if (err) throw err;

  MyModel.findById(test._id, function(err, obj) {
    if (err) throw err;

    console.log(obj.name);
    // Brett Lawson
  });});


Cheers, Brett

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to