piranha

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i piranha

Weekly Downloads

2

Version

1.1.0

License

Apache

Last publish

Collaborators

  • joshbeitler