@dalisoft/sequelize-wrap
v0.0.10
Published
An Wrapper for Sequelize Model
Downloads
17
Maintainers
Readme
sequelize-wrap
An Wrapper for Sequelize Model
Note: Requires Sequelize Model to be work
Features
- Easy
- Powerful
- Flexible
- Performant
Installation
We recommend install via npm
because of it's cache and flat node modules tree
npm i @dalisoft/sequelize-wrap
then you able to import to Node.js easily
// Node.js
const SequelizeWrap = require('@dalisoft/sequelize-wrap');
// ES6
import SequelizeWrap from '@dalisoft/sequelize-wrap';
Methods
See sequelize-wrap.js
for methods, a lot of functions, but i don't have time to write all of these there, sorry
Usage
const model = sequelize.model(...);
const wrappedModel = new SequelizeWrap(model);
// here you go
License
MIT