Basic usage
Features
The Sequelize datasource automatically preserves your ORM configuration:- Sequelize scopes - Mapped to Forest segments
- Sequelize hooks - Bulk hooks run; per-record hooks do not (see below)
- Associations - Relationships are automatically recognized
- Validations - Enforced on edit, skipped on create (see below)
Which hooks run on a write from Forest
Forest writes throughbulkCreate, update and destroy without individualHooks, so only bulk hooks fire:
The SQL datasource never loads your models, so none of your hooks or validations apply to it.
Live Query support
Enable SQL-based reporting by setting a connection identifier:Source code
This connector is open source. Browse the code or contribute on GitHub:@forestadmin/datasource-sequelize.