Distributed database--ZBConverter data conversion tool

- basic introduction -

ZBConverter is a scalable, high-performance tool for data transfer, schema conversion, and migration verification, supporting data between Yunxi Database, Oracle, MariaDB, MySQL, SQL Server, PostgreSQL, IBM DB2, Sybase, Informix, Teradata, Greenplum, and Netezza Transformation of database schemas (DDL), queries and DML statements, views, stored procedures, packages, functions and triggers. Written in C/C++, uses the native low-memory bulk loader API to transfer data, and works on Linux, Windows, 64-bit and 32-bit platforms.

Command line related parameters are as follows:

 

 

- Logical Architecture -

When a single SQL file or a folder containing multiple SQL files is specified by the -in parameter, the file will be processed by ProcessFile. The file content is pre-converted into a data stream by ConvertSql and passed to Convert, in which the GetBomToken() function converts the data according to the token syntax tree and passes it to the Parse() function. The Parse() function will batch process according to the mapping until the token is processed. After Post, it will be processed as an output stream by CreateOutputString, and finally written to a file or folder by Write. On the basis of the original file name, _out is added by default, and the output file can also be customized.

SQL file processing logic

 

 

SQL statement processing logic

 

 

- Practical application -

For example, the effect of MySQL->ZNBase (Yunxi database) is as follows:

 

{{o.name}}
{{m.name}}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324153368&siteId=291194637