Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
mariadb2tidb
command
Command mariadb2tidb converts MariaDB schema dumps into TiDB-compatible SQL using a rule-based transformation engine.
|
Command mariadb2tidb converts MariaDB schema dumps into TiDB-compatible SQL using a rule-based transformation engine. |
|
internal
|
|
|
compat
Package compat holds TiDB compatibility facts shared by the loader and the transformation rules: which collations and engines TiDB accepts, how MariaDB-only names map onto them, and a collector for migration warnings.
|
Package compat holds TiDB compatibility facts shared by the loader and the transformation rules: which collations and engines TiDB accepts, how MariaDB-only names map onto them, and a collector for migration warnings. |
|
config
Package config defines the YAML-backed configuration for the transformation engine: directories, rule toggles, and charset/collation mappings.
|
Package config defines the YAML-backed configuration for the transformation engine: directories, rule toggles, and charset/collation mappings. |
|
parser
Package parser loads SQL text into TiDB parser ASTs (after token-level preprocessing of MariaDB-only syntax the parser rejects) and restores ASTs back into formatted SQL.
|
Package parser loads SQL text into TiDB parser ASTs (after token-level preprocessing of MariaDB-only syntax the parser rejects) and restores ASTs back into formatted SQL. |
|
rules
Package rules implements the individual MariaDB-to-TiDB transformation rules applied by the engine, plus the registry that orders them.
|
Package rules implements the individual MariaDB-to-TiDB transformation rules applied by the engine, plus the registry that orders them. |
|
transformer
Package transformer wires the parser and rules together: the Engine applies rules to parsed statements, and DirProcessor runs the pipeline over directory trees in parallel.
|
Package transformer wires the parser and rules together: the Engine applies rules to parsed statements, and DirProcessor runs the pipeline over directory trees in parallel. |
|
utils
Package utils holds small shared helpers, currently the process-wide zap logger.
|
Package utils holds small shared helpers, currently the process-wide zap logger. |
Click to show internal directories.
Click to hide internal directories.