The LoopBack <https://github.com/strongloop/loopback> project already 
provides an ODM for many data sources. You can find more information at:

http://docs.strongloop.com/display/DOC/Working+with+models+and+data+sources

The CouchDB can be easily ported from
 https://github.com/jugglingdb/nano-adapter 
<https://github.com/jugglingdb/nano-adapter>as 
LoopBack data source juggler was initially folked from JugglingDB and the 
connector/adapter contract is pretty much the same. We welcome 
contributions!

Thanks,
Raymond

On Thursday, November 21, 2013 12:03:54 PM UTC-8, Brett Lawson wrote:
>
> 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<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fbrett19%2Fnode-ottoman&sa=D&sntz=1&usg=AFQjCNHnhO8fUjLR6H2bCCxQzpo_itGgNA>
>
>
> 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] <javascript:>';
> 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