Sequelize.syncIndices() method
Creates the column indices declared across every registered model.
Signature:
syncIndices(options?: SyncOptions): Promise<any>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
options |
(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.