Narnia's Psychedelic Mushrooms
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

waterline-init

1.0.2 • Public • Published

waterline-initializer

initialize waterline without sails

usage:

npm install --save waterline-init

then

var BuildWaterLine = require('waterline-init');
BuildWaterLine.buildORM('testMongodb', {migrate: 'drop'}, function (err, models) {
    if (err) throw err;
    console.log('waterline init time %s s', (Date.now() - start_time) / 1000);
    models['User'].findOne({}, function(err, user){
        done()
    })
})

install

npm i waterline-init

Downloadsweekly downloads

3

version

1.0.2

license

ISC

homepage

github.com

last publish

collaborators

  • avatar