MySQL, MariaDB, PostgresSQL, and SQLite Object Relational Mapper (ORM) for node.
To install 1.x.x (currently 1.7.x) - which has a stable API and is mostly backwards compatible:
npm install sequelize
To install 2.x.x branch - which has a unstable API and will break backwards compatability:
npm install sequelize@unstable
- Schema definition
- Schema synchronization/dropping
- 1:1, 1:M & N:M Associations
- Through models
- Promises
- Hooks/callbacks/lifecycle events
- Prefetching/association including
- Transactions
- Changelog
- Getting Started
- Documentation
- API Reference Work in progress
- Changelog
- Collaboration and pull requests
- Roadmap
- Meetups
- IRC
- Google Groups
Instructions for running samples are located in the example directory. Try these samples in a live sandbox environment: