sqldiffer
Check the difference of MySQL schema (CREATE TABLE)
Feature
- Check the difference of MySQL schema
- Compare CREATE TABLE
- Choose whether to ignore AUTO_INCREMENT and CHARSET
- Output HTML
- Save the difference for each table in HTML (Click here for sample)
Installation
pip install sqldiffer
Usage
sqldiffer -h
usage: sqldiffer [-h] --server1 SERVER1 --server2 SERVER2 [-o OUTPUT_DIR] [--skip-auto-increment] [--skip-charset] [-V]
Check the difference of MySQL schema (CREATE TABLE)
optional arguments:
-h, --help show this help message and exit
--server1 SERVER1 Comparison source. [Format] user:password@host:port/database
--server2 SERVER2 Comparison target. [Format] user:password@host:port/database
-o OUTPUT_DIR, --output-dir OUTPUT_DIR
Directory to save files. Default is current directory.
--skip-auto-increment
Whether to ignore the difference of "AUTO_INCREMENT=[0-9]+"
--skip-charset Whether to ignore the difference of "CHARSET=[a-z0-9]+"
-V, --version Show command version
Examples
Check the differences
sqldiffer --server1 homoluctus:test@aroundtheworld:3306/aaa \
--server2 homoluctus:test@anothersky:3306/aaa
Ignore charset
sqldiffer --server1 homoluctus:test@aroundtheworld:3306/aaa \
--server2 homoluctus:test@anothersky:3306/aaa \
--skip-charset
Ignore auto_increment and charset
sqldiffer --server1 homoluctus:test@aroundtheworld:3306/aaa \
--server2 homoluctus:test@anothersky:3306/aaa \
--skip-auto-increment \
--skip-charset
Metadata
Release files for sqldiffer 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sqldiffer-0.1.2.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sqldiffer-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.5 kB
Release files / sqldiffer-0.1.2.tar.gz
| Download URL | sqldiffer-0.1.2.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d504bc9adbf5a3f35a1393f5eddadff1a660f83c4e4f7f5ba16ca10e1bcc0989
|
|
BLAKE2b-256 checksum How to use checksums |
e61d4555e7a09f119e8b2efd7ab35240fa4a36bd9886817c7ec5069aeff0e3fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.8.5 Linux/5.3.0-1034-azure
|
Release files / sqldiffer-0.1.2-py3-none-any.whl
| Download URL | sqldiffer-0.1.2-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21d40be3ca93bb60ef69d53c6d856c0f8000ab044c61b0b09c84a1d1946404e2
|
|
BLAKE2b-256 checksum How to use checksums |
a56142176cedc6d739d31aecdfe0837ca58908010f857f7c436216bca942161c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.8.5 Linux/5.3.0-1034-azure
|