JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github chores(github): update pull request template (#9634) Jul 6, 2018
docs doc(usage): plain option description (#9810) Aug 17, 2018
lib fix(count): duplicate mapping of fields break scopes (#9788) Aug 16, 2018
scripts perf: some improvements / cleanup (#9576) Jun 21, 2018
test fix(count): duplicate mapping of fields break scopes (#9788) Aug 16, 2018
.editorconfig Polish docs (#7627) May 14, 2017
.esdoc.json docs: cleanup operators / legal docs May 5, 2018
.eslintrc.json docs: cleanup / correct jsdocs (#9702) Jul 22, 2018
.gitignore docs: cleanup / correct jsdocs (#9702) Jul 22, 2018
.npmignore perf: some improvements / cleanup (#9576) Jun 21, 2018
.npmrc ci(release): update to semantic-release v11 (#8709) Dec 4, 2017
.travis.yml ci(travis): reminder that docs point to v4 May 24, 2018
CONTACT.md Update CONTACT.md Jul 19, 2016
CONTRIBUTING.DOCS.md Change documentation to esdoc (#7490) Apr 11, 2017
CONTRIBUTING.md docs(contributing): remove mention of changelog Jul 30, 2018
Dockerfile chores: cleanup contribution guidelines and local testing/sscce setup ( Nov 25, 2017
LICENSE chores(license): adopt present year format and text formatting (#8657) Nov 20, 2017
README.md docs: readme update May 19, 2018
appveyor.yml perf: some improvements / cleanup (#9576) Jun 21, 2018
codecov.yml Adding codecov.yml Sep 5, 2016
docker-compose.yml feat(datatypes): array(enum) support for PostgreSQL (#8738) Dec 4, 2017
index.js Fix #2852, Added DEBUG support and intensive connection logging (#6117) Jun 17, 2016
jsdoc.json docs: cleanup / correct jsdocs (#9702) Jul 22, 2018
package.json chore(package): update @semantic-release/npm to version 5.0.2 (#9802) Aug 16, 2018
sscce_template.js Feat 4597 : Pass through values using options.through for N:M relatio… Nov 30, 2016

README.md

Sequelize

npm version Build Status Windows Build status codecov Bountysource Slack Status npm downloads node License semantic-release Greenkeeper badge

Sequelize is a promise-based Node.js ORM for Postgres, MySQL, SQLite and Microsoft SQL Server. It features solid transaction support, relations, read replication and more.

v5 Beta Release

We have started v5 beta release process. Hopefully this will cover full v5 milestone. You can find upgrade guide and changelog here

npm install --save sequelize # will install v4
npm install --save sequelize@next # will install v5-beta

Table of Contents

Installation

$ npm install --save sequelize

# And one of the following:
$ npm install --save pg pg-hstore
$ npm install --save mysql2
$ npm install --save sqlite3
$ npm install --save tedious # MSSQL

Sequelize follows SEMVER. Supports Node v4 and above to use ES6 features.

Features

  • Schema definition
  • Schema synchronization/dropping
  • 1:1, 1:M & N:M Associations
  • Through models
  • Promises
  • Hooks/lifecycle events
  • Prefetching/association including
  • Transactions
  • Migrations
  • CLI (sequelize-cli)

Responsible disclosure

If you have any security issue to report, contact project maintainers privately. You can find contact information here

Documentation

Resources

Tools

Learning

Translations