0.0.1-0 • Published 10 years ago
merlin v0.0.1-0
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);