piranha
v1.1.0
Published
A super fantastic solution for managing data in your app - based on Waterline
Downloads
1
Maintainers
Readme
piranha
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