Sequelize maps JavaScript and TypeScript models to SQL databases with promise-based APIs. It supports Postgres, MySQL family engines, SQLite, SQL Server, Oracle, Snowflake, and DB2 variants.
Overview
Sequelize is an object-relational mapper for Node.js and TypeScript applications that need structured access to relational data without hand-writing every query. Developers define model classes, associate them, and use async methods for creates, reads, updates, and deletes against the configured dialect.
The library emphasizes transaction support, relationship navigation, and both eager and lazy loading strategies. Read replication hooks help applications spread read traffic across replicas when configured. JSON column types are supported on engines such as Postgres that provide them.
Model definitions can drive optional automatic schema synchronization, while migrations are documented for controlled upgrades. Associations express one-to-many and similar links, with helper methods to traverse related rows. Paranoid mode implements soft deletes so rows are flagged instead of physically removed.
Additional capabilities described in the docs include lifecycle hooks, strongly typed definitions in TypeScript, and JSON-field querying. Compatibility tables list which features apply per database backend so teams can compare supported behavior before choosing a driver pair.
Key features
- Promise-based model CRUD APIs
- Transactions and association helpers
- Eager and lazy relation loading
- Read replication support
- Soft deletion via paranoid models
- Automatic sync and migration workflows
- Lifecycle hooks on model events
- Broad SQL dialect compatibility
Use cases
- Model relational data in Node services
- Share one ORM across multiple SQL engines
- Express table relationships in application code