Skip to content

Golang 针对 MySQL 数据库表结构的差异 SQL 工具。

License

Notifications You must be signed in to change notification settings

haiya512/go-mysqldiff

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mysqldiff

Golang 针对 MySQL 数据库表结构的差异 SQL 工具。

使用

# 查看帮助
./mysqldiff --help
# 实例
./mysqldiff --source user:password@host:port --db db1:db2
./mysqldiff --source user:password@host:port --target user:password@host:port --db db1:db2
./mysqldiff --source user:password@host:port --target user:password@host:port --db db1:db2 --comment

自动补全

mysqldiff completion bash > /etc/bash_completion.d/mysqldiff && source /etc/bash_completion.d/mysqldiff

打包

包含命令自动补全

./install.bash

About

Golang 针对 MySQL 数据库表结构的差异 SQL 工具。

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.5%
  • Shell 0.5%