Home
Sign Up
Sign In
推荐学习书目
›
Learn Python the Hard Way
Python Sites
›
PyPI
- Python Package Index
›
http://diveintopython.org/toc/index.html
›
Pocoo
值得关注的项目
›
PyPy
›
Celery
›
Jinja2
›
Read the Docs
›
gevent
›
pyenv
›
virtualenv
›
Stackless Python
›
Beautiful Soup
›
结巴中文分词
›
Green Unicorn
›
Sentry
›
Shovel
›
Pyflakes
›
pytest
Python 编程
›
pep8 Checker
Styles
›
PEP 8
›
Google Python Style Guide
›
Code Style from The Hitchhiker's Guide
V2EX
›
Python
Python 有什么库可以支持同 Navicat 那样比对 Mysql ddl 结构比对,并生产 sql 语句的
sandwu
·
Mar 21, 2019
· 2279 views
This topic created in 2630 days ago, the information mentioned may be changed or developed.
如题,需求是将开发环境的表结构应用到测试环境,开发环境的表变更可能会增删改查很多次,所以就是取最新的一次和测试环境的数据库进行比对。有推介用 mysqldif 的,看评论说是对于表中间字段的插入,mysqldiff 会把从中间插入到最后的字段都列为变更项,请问下有没有更好的库支持?还是说 mysqldiff 就足够了?
比对
mysqldiff
插入
变更
2 replies
1
Sothoth
Mar 22, 2019
这个数据库的表结构用版本管理,有变更交给 DBA 评审,入库之后应用到测试或者生产环境会比较好吧。就这样更新,回滚不好搞哦。
2
sandwu
OP
Mar 22, 2019
@
Sothoth
嗯嗯,是这样,现在就是需要应用到测试环境和生产环境,所以需要比对开发环境和测试环境的数据表结构差异,然后写出 sql,有相应的库吗?
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
1358 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 93c8b4a0 · 27ms ·
UTC 23:49
·
PVG 07:49
·
LAX 16:49
·
JFK 19:49
♥ Do have faith in what you're doing.
❯