postgrelize / PartitionBound
Variable: PartitionBound ​
constPartitionBound:object
Defined in: src/ddl/partition-types.ts:23
postgrelize extensionMINVALUE 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 ​
readonlyMAXVALUE:Readonly<Readonly<{keyword:"MINVALUE"|"MAXVALUE"; }>>
Highest possible value of a range column.
MINVALUE ​
readonlyMINVALUE: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'],
});