Skip to main content
  • Generates a specified number of random records and adds them to the given table. There is an optional parameter that allows the user to customize the ranges of the column values. It also allows the user to specify linear profiles for some or all columns in which case linear values are generated rather than random ones. Only individual tables are supported for this operation.

    This operation is synchronous, meaning that a response will not be returned until all random records are fully available.

    Parameters

    • table_name: string

      Table to which random records will be added, in [schema_name.]table_name format, using standard name resolution rules. Must be an existing table, not a view.

    • count: number

      Number of records to generate.

    • Optionaloptions: Record<string, Record<string, number>>

      Optional parameter to pass in specifications for the randomness of the values. This map is different from the options parameter of most other endpoints in that it is a map of string to map of string to doubles, while most others are maps of string to string. In this map, the top level keys represent which column’s parameters are being specified, while the internal keys represents which parameter is being specified. These parameters take on different meanings depending on the type of the column.

    • Optionalcallback: GPUdbCallback

      Optional callback function

    Returns Promise<InsertRecordsRandomResponse>

    Promise<Types.InsertRecordsRandomResponse> - Promise resolving to the response

  • Generates a specified number of random records and adds them to the given table. There is an optional parameter that allows the user to customize the ranges of the column values. It also allows the user to specify linear profiles for some or all columns in which case linear values are generated rather than random ones. Only individual tables are supported for this operation.

    This operation is synchronous, meaning that a response will not be returned until all random records are fully available.

    Parameters

    Returns Promise<InsertRecordsRandomResponse>

    Promise<Types.InsertRecordsRandomResponse> - Promise resolving to the response