sequelize-node
v1.0.6
Published
sequelize for node as module
Downloads
15
Readme
sequelize-node
store your sequelize instance in module. why? you can access this instance everywhere, for example use different modules without dependency in your app code.
Install
npm i sequelize-node --save-dev
Using
const { Sequelize, db } = require('sequelize-node');
const { sequelize } = new Sequelize(database, username, password, options);
// sequelize === db.sequelize === sequelize instance