sequelize-reflect
v0.0.8
Published
Automatically generate bare sequelize models from your database in runtime.
Downloads
2
Maintainers
Readme
Sequelize-Reflect
Automatically generate models for SequelizeJS in runtime.
Install
npm install -g sequelize-reflect
Usage and Example
var sequelizeReflect = new SequelizeReflect(sequelize);
sequelizeReflect.createTableFromDatabase('Bars').then(function(model) {
// do your stuff with the model generated
model.findAll().then(function(data) {
});
});
Which makes it easy for you to simply make queries on it.