Interface StringColumnOption

StringColumnOption is used for GeneratorOption.columnOptions

Hierarchy

  • StringColumnOption

Properties

_tag: "StringColumnOption"
lengthIn?: "char" | "byte"

Which measurement unit to use, either char or byte.

Default

char for character string type column, byte for byte string type column

loop: "loop" | "keep"

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

Default

loop.

maxLength: number

Limit of incrementation value.

Default

depend on the corresponding table data type.

Prefix.

Default

a character in A-Z, a-z, depending on the column position

Generated using TypeDoc