Skip to content

Latest commit

 

History

History
95 lines (68 loc) · 2.45 KB

README.md

File metadata and controls

95 lines (68 loc) · 2.45 KB

Synthesized TDK MySQL Demo

test mysql

Sakila is a sample database schema that can be used in MySQL tutorials, articles, demos, etc.

Clone this repo:

git clone https://github.com/synthesized-io/pagila-tdk-demo
cd pagila-tdk-demo/mysql

Generation based on the empty schema

generation from scratch demo

Run TDK:

export CONFIG_FILE=config_generation_from_scratch.tdk.yaml
docker compose run tdk

Check the ORIGINAL database with control sql-query:

usql mysql://root:admin@localhost:6000/sakila -f control_query.sql

Check the RESULTED database with control sql-query:

usql mysql://root:admin@localhost:6001/sakila -f control_query.sql

Generation based on the existing data

generation demo

Run TDK:

export CONFIG_FILE=config_generation.tdk.yaml
docker compose -f docker-compose.yaml -f docker-compose-input-db.yaml run tdk

Check the ORIGINAL database with control sql-query:

usql mysql://root:admin@localhost:6000/sakila -f control_query.sql

Check the RESULTED database with control sql-query:

usql mysql://root:admin@localhost:6001/sakila -f control_query.sql

Masking of the existing data

masking demo

Run TDK:

export CONFIG_FILE=config_masking.tdk.yaml
docker compose -f docker-compose.yaml -f docker-compose-input-db.yaml run tdk

Check the ORIGINAL database with control sql-query:

usql mysql://root:admin@localhost:6000/sakila -f control_query.sql

Check the RESULTED database with control sql-query:

usql mysql://root:admin@localhost:6001/sakila -f control_query.sql

Subsetting of the existing data

subsetting demo

Run TDK using Docker image:

export CONFIG_FILE=config_subsetting.tdk.yaml
docker compose -f docker-compose.yaml -f docker-compose-input-db.yaml run tdk

Check the ORIGINAL database with control sql-query:

usql mysql://root:admin@localhost:6000/sakila -f control_query.sql

Check the RESULTED database with control sql-query:

usql mysql://root:admin@localhost:6001/sakila -f control_query.sql