sequelize-extra
v0.5.0
Published
Collection of extensions to Sequelize
Downloads
21
Maintainers
Readme
sequelize-extra.js
Collection of extensions to Sequelize
What it does
Packages together 4 Sequelize plugins (sequelize-definer, sequelize-hierarchy, sequelize-virtual-fields and sequelize-values).
Current status
API is stable. All features and options are fairly well tested. Works with all dialects of SQL supported by Sequelize (MySQL, Postgres, SQLite) except Microsoft SQL Server.
Utilizes Sequelize v3.x.x internally, but can work with v2.x.x.
Usage
Usage of this module is not recommended! Better to use the 4 plugins directly (sequelize-definer, sequelize-hierarchy, sequelize-virtual-fields and sequelize-values).
Loading module
To load module:
var Sequelize = require('sequelize-extra');
Additional Promise methods
Sequelize.Promise
is augmented with extra methods from bluebird-extra so methods like mapSeries()
can be used on results returned from Sequelize.
Tests
Use npm test
to run the tests. Use npm run cover
to check coverage.
Requires a database called 'sequelize_test' and a db user 'sequelize_test' with no password.
Changelog
See changelog.md
Issues
If you discover a bug, please raise an issue on Github. https://github.com/overlookmotel/sequelize-extra/issues
Contribution
Pull requests are very welcome. Please:
- ensure all tests pass before submitting PR
- add an entry to changelog
- add tests for new features
- document new functionality/API additions in README