Skip to content

generateTestData ​

Command: generateTestData
Category: System Tools
Status: Production Ready

Description ​

Generate realistic sample data for a table and output it as SQL, CSV, or JSON.

Syntax ​

bash
hana-cli generateTestData [options]

Command Diagram ​

Aliases ​

  • testdata
  • gendata
  • generateData

Parameters ​

For a complete list of parameters and options, use:

bash
hana-cli generateTestData --help

Options ​

OptionAliasTypeDefaultDescription
--table-tstring-Target table name
--schema-sstring-Schema name
--rows-rnumber100Number of rows to generate
--locale-lstringenLocale for generated values
--seed-sdnumber-Random seed for reproducibility
--format-fstringsqlOutput format. Choices: sql, csv, json
--output-ostring-Output file path
--realistic-xbooleantrueGenerate realistic values
--includeRelations-relbooleantrueInclude relation-aware generation
--dryRun-drbooleanfalseDry-run mode
--profile-pstring-Connection profile

Examples ​

Basic Usage ​

bash
hana-cli generateTestData --table MY_TABLE --rows 100 --format sql

Generate sample rows and output SQL insert statements.

See the Commands Reference for other commands in this category.

See Also ​