Sequelize is a Node.js ORM. This fork supports Postgres only — the MySQL, SQLite and MSSQL dialects have been removed.
$ npm install --save sequelize
# And the Postgres driver:
$ npm install --save pg pg-hstore- Schema definition
- Schema synchronization/dropping
- 1:1, 1:M & N:M Associations
- Through models
- Promises
- Hooks/callbacks/lifecycle events
- Prefetching/association including
- Transactions
- Migrations
- CLI (sequelize-cli)