Skip to content

postgrelize / CreateViewOptions

Type Alias: CreateViewOptions ​

CreateViewOptions = Readonly<{ checkOption?: "local" | "cascaded"; columns?: readonly string[]; recursive?: boolean; replace?: boolean; securityBarrier?: boolean; securityInvoker?: boolean; temporary?: boolean; }>

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

postgrelize extension

Options of createView. PostgreSQL extension.

Example ​

ts
const options: CreateViewOptions = { replace: true, columns: ['id', 'title'], checkOption: 'local' };
await queryInterface.createView('published_posts', 'SELECT id, title FROM "Posts" WHERE published', options);

Released under the MIT License.