You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `--schema` parameter allows you to generate mutliple configuration with different names.
28
+
27
29
If you want to customize the schema, modify the default `settings/schema_custom.jsonc` that has also be generated.
28
30
29
31
## 2. Data generation
@@ -62,11 +64,13 @@ Available options in `schema_custom.json`:
62
64
-`Table.addLines: number` // Number of rows to be inserted on a single run. The number of lines resulting in the table will not exceed `Table.maxLines`
63
65
-`Table.columns: Column[]` // list of columns handled by the tool
64
66
-`Column.name: string` // column name
65
-
-`Column.generator: bit | boolean | date | foreignKey | integer | real | time | string | values | function` // data type generator used for this column
67
+
-`Column.generator: bit | boolean | date | foreignKey | integer | real | time | string | values | function | faker` // data type generator used for this column
66
68
-`Column.[key: string]: any[]` // list of options for this column
67
69
-`Column.foreignKey: { table: string, column: string, where: string }` // link to the table.column referenced by this foreign key. A custom clause can ba added to filter value from the foreign column
68
70
-`Column.values: string | any[] | { [key: string]: number }`
69
71
// Name of the list of values to use for this column.
70
72
// You can also directly specify an array of strings for values.
71
73
// Or you can use an object to specify a ratio per value. Ratio will be a number between 0 and 1.
72
74
-`Column.customFunction: (rowIndex: number, row: { [key: string]: string | number }` // a string representing a javascript custom function. It will receive the row index and the full row as arguments.
75
+
-`Column.template: string` // a template string for `faker` generator. See [fakerjs](https://www.npmjs.com/package/@faker-js/faker) for more information.
76
+
-`Column.locale: string` // locale used by the faker generator.
0 commit comments