node package manager

merlin

Merlin ORM

Merlin is an ORM (Object Relational Mapper) designed for the flexablity and preformance needed when creating large scale applications. Merlin's major advatages include a database driver interface, enabling you to use and database you like, a plugin interface, allowing to to extend or modify any aspect of the ORM with plugins, and a streaming CRUD interface.

Examples

Basic Find

Customer.find({ ... }, function(err, customers) {
    ...
});

Streaming Find

var stream = Customer.find({ ... });
 
stream.forEach(function(err, customer) { ... });
// OR 
stream.pipe(outStream);

Basic Insert

Customer.insert([ { ... }, ... ], function(err, customers) {
    ...
});

Streaming Insert

inStream.pipe(Customer.insert()).pipe(outStream);