Data Resource - Generator

Undraw Environment

About

A data resource generator is a content data resource that generates data.

Syntax

A generator is a yaml file terminated by the suffix –datagen.yml that follows the data definition file syntax.

It adds:

MaxRecordCount: 30
Columns:
  - name: columnName
    comment: A column with a sequence integer generator and its properties
    DataGenerator: # the data generator node definition for a column
      type: sequence
      start: 3
      step: 2
      maxTick: 5
  - name: columnName2
    ........

See the column generator page to see all type of generations that you can choose for a column.

Attribute

MaxRecordCount

maxRecordCount is an attribute that defines the maximum number of record generated

Count

The count attribute is calculated and define how many record a generator would generate.

You can see it with the data info command.

Example with a sequence generator, you would get the maximum value. For an integer, this is 2147483647

tabli data info  generator_count--datagen.yml@howto
Information about the data resource (generator_count--datagen.yml@howto)
ATTRIBUTE      VALUE
------------   ------------------------------------------------------------------------
AbsolutePath   D:\code\bytle-mono\db-website\src\doc\howto\generator_count--datagen.yml
Characterset   ISO-8859-1
Connection     howto
Count          2147483647
DataUri        generator_count--datagen.yml@howto
LogicalName    generator_count
Name           generator_count--datagen.yml
Path           generator_count--datagen.yml
Size           227
Type           datagen




Related HowTo
Undraw Environment
How to create a CSV File with generated data

This article shows you how to generate a csv file from a generator tabular file.
Undraw Environment
How to create an odometer with a sequence generator

This how-to shows you how to generate a digital Odometer with the column sequence generator.
Undraw Environment
How to generate a date dimension ?

A date dimension is a typical case for data generation and this article shows you how to generate it.
Undraw Environment
How to generate a normal distribution with an histogram generator

This how-to shows you how to generate data that follows a normal distribution with the column histogram generator
Undraw Environment
How to generate a sequence based on provided values

This how-to shows you how to generate a sequence based on provided values with the column sequence generator.
Undraw Environment
How to generate a sequence of date and timestamp

This how-to shows you how to generate a sequence of date and timestamp with the column sequence generator.
Undraw Environment
How to generate a sequence of letters

This how-to shows you how to generate an string,varchar, text sequence with the column sequence generator.
Undraw Environment
How to generate a sequence of numbers

This how-to shows you how to generate an integer sequence (1,2,3,…) with the column sequence generator.
Undraw Environment
How to generate random data

This how-to shows you how to generate random data with the column random generator.
Undraw Environment
How to get data from a list of values at random

This how-to shows you how to generate data from a list of values at random data with the column histogram generator.

Task Runner