sequelize-extra

0.5.0 • Public • Published

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

NPM version Build Status Coverage 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

/sequelize-extra/

    Package Sidebar

    Install

    npm i sequelize-extra

    Weekly Downloads

    12

    Version

    0.5.0

    License

    MIT

    Unpacked Size

    9.35 kB

    Total Files

    9

    Last publish

    Collaborators

    • overlookmotel