Skip to content

postgrelize / CreateMaterializedViewOptions

Type Alias: CreateMaterializedViewOptions ​

CreateMaterializedViewOptions = Readonly<{ columns?: readonly string[]; ifNotExists?: boolean; using?: string; withData?: boolean; }>

Defined in: src/ddl/view-ddl.ts:48

postgrelize extension

Options of createMaterializedView. PostgreSQL extension.

Example ​

ts
const options: CreateMaterializedViewOptions = { ifNotExists: true, withData: false };
await queryInterface.createMaterializedView('post_stats', 'SELECT count(*) AS n FROM "Posts"', options);

Released under the MIT License.