Skip to content

sunyi00/python-sqldiff

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sqldiff

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

fork from: https://github.com/camry/python-mysqldiff

重新开始维护 Python 版本的 mysqldiff 工具, 并且对于index的diff判别进行了进一步的分析(针对index diff 不仅仅是 索引名字,更关注索引内在的属性以及顺序

使用

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

安装

pip install pyinstaller
pip install click
pip install mysql-connector-python

打包

pyinstaller -F sqldiff.py

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.4%
  • Shell 0.6%