1.1.0 • Published 9 years ago

piranha v1.1.0

Weekly downloads
2
License
Apache
Repository
github
Last release
9 years ago

piranha Build Status

NPM

Piranha is a super fantastic solution for implementing the amazing Waterline ORM into non-Sails Node apps.

Install

$ npm install --save pirahna

Usage

var piranha = require("piranha");
    
var collections = {
  user: {
    connection: 'tmp',
    attributes: {
      'name': 'string',
      'env': 'string'
    }
  }
};

var connections = {
  tmp: {
    adapter: 'sails-disk'
  }
};

pirahna({
  collections: collections, 
  connections: connections
}, function(err, waterline) {
  // Proceed to use Waterline like normal
});

License

Apache 2.0 © Joshua Beitler