-
Notifications
You must be signed in to change notification settings - Fork 0
Home
When you start building web applications and APIs you often need something that interacts with database for you. Maintaining relationships between tables, fetching related records, managing transactions gets very repetitive overtime with just raw queries. Sequelize abstract away these tasks for you and provide you a database layer.
Sequelize is an ORM which is designed to work with Node.JS and IO.JS. Its written in pure JavaScript. It supports many major database engines like MySQL, Postgres, SQLite and MSSQL.
These are a few major features
- Schema Definition
- Schema Synchronization / Dropping
- 1:1, 1:M & N:M relations
- Junction / Through models
- Promises
- Lifecycle / Hooks events
- Lazy / Eager Loading
- Transactions
- Migrations
- CLI
Sequelize has been under development since Jul 2010. Its used by large number of users. Its under active development with new features introduced relatively often.
Getting Started
- Installation
- Basic Setup
- With Express.JS
- Sequelize CLI
- Relationships
- 1 : 1
- 1 : n
- n : m
- Polymorph
- Hooks
- Pooling
- Debugging
- Migrations
How To
Resources
Upgrade Guides
- 3.0 to 4.0
- 2.0 to 3.0
- 1.7 to 2.0
Help