This project is a thin client for Synthesized TDK integrated with TestContainers which can be used in order to generate testing data in an empty database.
-
Use Maven or Gradle to import the most recent version of TDK-TC.
-
Create input and ouptut
JdbcDatabaseContainer
in the same network, create schema and empty database in the input container. -
Run the transformation in the following way:
new SynthesizedTDK()
// Use this method to alter container image name for the TDK-CLI container
//.setImageName(...)
// Use this method to set license key in case you are using paid version of TDK-CLI
//.setLicense(...)
.transform(
//Input JdbcDatabaseContainer: empty database with schema
input,
//Output JdbcDatabaseContainer: output database with generated data
output,
//Workflow configuration in YAML format
"""
default_config:
mode: "GENERATION"
target_row_number: 10
global_seed: 42
"""
);
See full documentation on workflow configuration in YAML format here.