vielhuber/magicdiff
Composer 安装命令:
composer require vielhuber/magicdiff
包简介
Generates a sql diff between two given database states.
README 文档
README
magicdiff generates automagically sql diffs for a database between two given states.
Key benefits
- Spits out real sql queries that can be applied on previous state
- Does not use sql triggers or binary / ddl logs
- Works with any shared hosting provider
- Data and schema changes, at the same time
- Fast
- Command line tool and class usage possible
- Covered through test suite
- Returns (separate) diffs and patch files
- Can ignore certain tables
- Takes care of (primary) keys and all kinds or altering tables
- Zero dependencies
Disclaimer
This does not prevent you from taking backups. Use this script at your own risk.
Command line
Installation
wget https://raw.githubusercontent.com/vielhuber/magicdiff/master/src/magicdiff.php
Usage
php magicdiff.php setup
php magicdiff.php init
php magicdiff.php diff
Class
Installation
composer require vielhuber/magicdiff
Usage
<?php require __DIR__ . '/vendor/autoload.php'; use vielhuber\magicdiff\magicdiff; magicdiff::setup(); magicdiff::init(); magicdiff::diff();
统计信息
- 总下载量: 33
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-05-08