$ npm install --save elefrant-orm
Elefrant orm connect Waterline ORM with Elefrant Framework
var orm = require('elefrant-orm');
var options = {
adapters: {/* .. Adapter .. */},
connections: {/* .. Connections .. */},
collections: {/* .. Collections .. */},
};
orm(options, function (err, models) {
if (err) {
console.log(err);
} else {
// Get models
// models.connections & models.collections
console.log(models);
}
});
MIT © Elefrant