Get Started
Install Sequelize and connect to your database in minutes
Dialects
PostgreSQL, MySQL, MariaDB, SQLite, MSSQL, Oracle, Snowflake, DB2, and IBM i
Models
Define models with attributes, data types, and validations
Querying
Create, read, update, and delete records with a fluent API
Associations
BelongsTo, HasOne, HasMany, and BelongsToMany relationships
Transactions
ACID-compliant transactions with savepoints and CLS support
CLI & Migrations
Generate and run database migrations and seeders
API Reference
Full API documentation for the Sequelize class and all exports
Quick example
Key features
Multi-dialect
Connect to PostgreSQL, MySQL, MariaDB, SQLite, MS SQL Server, Oracle DB, Snowflake, DB2, and IBM i from the same API
TypeScript-first
Full TypeScript support with class decorators, type inference, and accurate typings for all public APIs
Rich associations
Model relationships with BelongsTo, HasOne, HasMany, and BelongsToMany — with eager and lazy loading
Transactions & hooks
ACID transactions, savepoints, CLS-based automatic transaction passing, and lifecycle hooks