Calculated or related values

These generators calculate values based on a script, formula, or on other values in the database.

For details about each generator and how to configure them in the application, go to Calculated or related values in the generator reference.

AI

Generates data values based on a prompt that you provide.

{
  "name": string,
  "data_type": string,
  "generator": "AI",
  //  Generator-specific fields
  "ai_prompt": string, //AI prompt to use to populate the column
  // End generator-specific fields
  "group_key": string,
  "percent_null": integer,
  "virtual": boolean,
  // Advanced options
  "primary_key": boolean,
  "index": boolean,
  "seed": string,
  "postprocessing_sql": string
}

Character Sequence

Populates a column with a value that uses a specific pattern. The pattern can include both random characters of a specific type and specific characters.

Column From Another Table

Populates the column with values from a column in a different table.

Foreign Key

Makes the column a foreign key to another table.

List

Populates the column from a provided list of values. You can optionally provide a weight for each value.

Markov Chain

Sets the column value based on a configured list of allowed transitions between values.

Rank

Assigns a rank value based on the values in 2 other columns.

Regular Expression

Produces a value that matches a regular expression that you provide. It uses the Peri-compatible regular expression syntax.

Row Number

Assigns an incrementing number to each row. Before Fabricate assigns the numbers, it can optionally sort the rows based on another column in the table.

SQL

The SQL generator is a premium feature. Free plan users have limited access to premium features.

Uses a SQL expression to generate the value. The expression can refer to other columns and other tables.

Sum From Another Table

Populates a column with the sum of column values from rows in another table. To identify the rows to include, you provide join criteria.

Sum Of Previous Rows

Adds together the values of a specified numeric column in rows that are before the current row.

Value From Previous Row

Populates a column with a value or values from another column in the previous row or rows.

Last updated