Skip to content

postgrelize / PartitionBound

Variable: PartitionBound ​

const PartitionBound: object

Defined in: src/ddl/partition-types.ts:23

postgrelize extension

MINVALUE and MAXVALUE for the from / to lists of a range partition bound. They are markers, not strings, so a string value can never be read as a keyword.

Type Declaration ​

MAXVALUE ​

readonly MAXVALUE: Readonly<Readonly<{ keyword: "MINVALUE" | "MAXVALUE"; }>>

Highest possible value of a range column.

MINVALUE ​

readonly MINVALUE: Readonly<Readonly<{ keyword: "MINVALUE" | "MAXVALUE"; }>>

Lowest possible value of a range column.

Example ​

ts
await queryInterface.createPartition('events', 'events_old', {
  from: [PartitionBound.MINVALUE],
  to: ['2020-01-01'],
});

Released under the MIT License.