Skip to content

aliksbright/tdk-tc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TDK-TC

Actions Status: build Maven Central

Synthesized TDK-Testcontainers integration

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.

Usage

  • 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.

About

TDK-Testcontainers integration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%