Interface NumericColumnOption

NumericColumnOptions is used for GeneratorOption.columnOptions

Hierarchy

  • NumericColumnOption

Properties

_tag: "NumericColumnOption"
initialValue: number | ((col: number) => number)

Value of the first row.

Default

1

limit?: number

Limit of incrementation.

Default

depend on the corresponding table data type.

loop: "loop" | "negate" | "keep"

How to behave when incrementation hits the limit.
loop: back to the initial value and continue to increment
negate: negate the value and continue to increment
keep: stop incrementation and keep the limit value

Default

loop.

stepBy?: number

How much advance per each row.

Default

1 for integers, 0.1 for decimals

Generated using TypeDoc