mysql_table_schema_diff

command module
v0.0.0-...-28fe476 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2023 License: MIT Imports: 7 Imported by: 0

README

mysql_table_schema_diff(MySQL简单易用的表结构对比工具)

use simple way to diff mysql table schema, include table_name, column_name, column_type and column_length

Use method(使用方法)

  1. create one config.yaml file like: (创建1个config.yaml的配置文件)

database1:

  driver: mysql

  dsn: user:password@tcp(host:port)/database1

database2:

  driver: mysql

  dsn: user:password@tcp(host:port)/database2

output: diff_tables.txt

  1. build go file

go build table_diff.go

  1. put the binary file and config file in the same path, run schema diff (将二进制与配置文件放在1个目录下,运行对比)

./table_diff

  1. check the diff result in output file (在配置文件中的输出文件中查看不一致的表)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL