This can based on the Flink DataStream package, which can implement a Flink task for submitting a whole database/multi-table synchronization by executing the command line.
The main process is as follows:
Obtain the MySQL link information, and read the table that needs to be synchronized this time according to the configuration
Determine whether the table exists in Databend, if not, create the table
Obtain CDC upstream data, and use the side output stream for distribution according to the table name
[ ] Support full-database synchronization.
[ ] The table-name also need to support regular expressions to monitor multiple tables that satisfy the regular expressions.