Online Documentation for Data Generator for PostgreSQL
Using console application
All the generation options are set in template (*.gtm) files. A template can be also used in the Console version of Data Generator for PostgreSQL .
To create a template file, follow the instructions below:
- start Data Generator for PostgreSQL Wizard Application;
- set all the required options in all steps of the wizard;
- test the generation process at the last step;
- save all generation options in the template file.
The easiest way to start Data Generator for PostgreSQL console application is to double-click the generated *.gtm template file. The other way is to enter the command line and type the appropriate command.
<path to Data Generator for PostgreSQL console application>\PgDataGenC.exe TemplateFile [-L] [-B]
Stands for the *.gtm template file to be used as the console version execution parameter
Use this parameter in the command line to run the console version of Data Generator for PostgreSQL in background mode
"C:\Program Files\EMS\Data Generator for PostgreSQL\PgDataGenC.exe" "C:\EMS\Templates\DataGenerator\Example.gtm" -L
Note: The following exit codes can be returned by Data Generator for PostgreSQL to the operating system after performing the latest task:
0 - successful completion;
1 - error(s) occurred during task performing;
2 - fatal error occurred. The task was not performed.