merlin
v0.0.1-0
Published
Merlin is an ORM for node JS that provides an extensive API, model relations, a plugins interface, and can connect to any database with a driver.
Downloads
11
Readme
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);