Readonly
_tagOptions for each column to determine how they are generated.
The options need to be valid types for corresponding columns.
- Column - - Option -
Numeric types -> NumericColumnOption
String types -> StringColumnOption
Datetime types -> DatetimeColumnOption
Boolean types -> BooleanColumnOption
If you want fixed values for some columns throughout entire rows,
you can specify the value using FixedValue.
Fall back column option by each column types.
Optional
eachThis callback function is called each time when rows are generated to modify generated rows.
// Adds line number to the second column
columns.num[1] = columns.num[1] + (process.row + 1);
// Adds column name to begining of the fourth column
columns.str[3] = process.names[3] + columns.str[3];
// Returns modified columns
return [columns,tempPrev];
Modified columns and the temporary information taken over to next time function call.
undefined
Columns to be modified.
Information used for data generation process.
Temporary information taken over from previous time function call.
Output format. Either csv or insert statement.
The number of rows to be generated.
10
Generated using TypeDoc
Options for data to be generated.