Skip to content

postgrelize / CreatePartitionOptions

Type Alias: CreatePartitionOptions ​

CreatePartitionOptions = Readonly<{ ifNotExists?: boolean; partitionBy?: PartitionKey; }>

Defined in: src/ddl/partition-ddl.ts:33

postgrelize extension

Options of createPartition. PostgreSQL extension.

Example ​

ts
await queryInterface.createPartition(
  'events',
  'events_2026',
  { from: ['2026-01-01'], to: ['2027-01-01'] },
  { ifNotExists: true, partitionBy: { strategy: 'list', columns: ['kind'] } },
);

Released under the MIT License.