Sequelize.syncViews() method

Replaces every model that is declared as a view.

Signature:

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

Parameters

Parameter

Type

Description

options

SyncOptions

(Optional) withoutDrop skips the drop; nothing else is read.

Returns:

Promise<any>

Resolves once every view has been replaced.

Remarks

Each view is dropped and created again unless withoutDrop is set, and the views are done concurrently — so a view that selects from another view has no ordering guarantee, and the drop of the one it depends on would fail anyway. That combination is what withoutDrop is for.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.