# SyncOptions interface · @imqueue/pg-sequelize

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

Sequelize's own sync options, extended for views and column indices.

**Signature:**

```typescript
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?](https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.syncoptions.treatasview/) |  | boolean | _(Optional)_ Has no effect when passed to a sync call. |
| [withNoViews?](https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.syncoptions.withnoviews/) |  | boolean | _(Optional)_ Syncs tables and indices only, leaving every view untouched. |
| [withoutDrop?](https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.syncoptions.withoutdrop/) |  | boolean | _(Optional)_ Replaces each view in place instead of dropping it first. |

