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

SyncOptions interface

Sequelize's own sync options, extended for views and column indices.

Signature:

export interface SyncOptions extends SyncOptionsOrigin 

Extends: SyncOptionsOrigin

Remarks

Passing nothing is the common case: tables, then views, then indices. The two additions worth knowing are withNoViews, for a deployment where views are managed outside the application, and withoutDrop, for views that depend on each other.

Properties

Property

Modifiers

Type

Description

treatAsView?

boolean

(Optional) Has no effect when passed to a sync call.

withNoViews?

boolean

(Optional) Syncs tables and indices only, leaving every view untouched.

withoutDrop?

boolean

(Optional) Replaces each view in place instead of dropping it first.