# Sequelize.syncViews() method · @imqueue/pg-sequelize

Source: https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.sequelize.syncviews/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-sequelize 4.2.0 — generated reference, not hand-written

Replaces every model that is declared as a view.

**Signature:**

```typescript
syncViews(options?: SyncOptions): Promise<any>;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| options | [SyncOptions](https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.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.

