$ open source · GPL-3.0 — need a commercial license? imqueue.com →

Sequelize.syncIndices() method

Creates the column indices declared across every registered model.

Signature:

syncIndices(options?: SyncOptions): Promise<any>;

Parameters

Parameter

Type

Description

options

SyncOptions

(Optional) Passed to each model, which does not currently read it.

Returns:

Promise<any>

Resolves once every index of every model exists.

Remarks

Run by sync() once the tables and views are in place. Only models that declare at least one index are visited, and the models are done concurrently.