Skip to content

postgrelize / AlterPolicyOptions

Type Alias: AlterPolicyOptions ​

AlterPolicyOptions = Readonly<Pick<CreatePolicyOptions, "roles" | "using" | "withCheck"> & object>

Defined in: src/ddl/policy-ddl.ts:99

postgrelize extension

Options of alterPolicy. PostgreSQL extension.

Example ​

ts
const options: AlterPolicyOptions = { roles: ['app_user', 'app_admin'], rename: 'tenant_rows' };
await queryInterface.alterPolicy('documents', 'tenant_isolation', options);

Released under the MIT License.