piranha

A super fantastic solution for managing data in your app - based on Waterline

Usage no npm install needed!

<script type="module">
  import piranha from 'https://cdn.skypack.dev/piranha';
</script>

README

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