Skip to main content

sqldiffer

PyPI PyPI - Python Version GitHub

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqldiffer-0.1.2.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sqldiffer-0.1.2-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file sqldiffer-0.1.2.tar.gz.

File metadata

  • Download URL: sqldiffer-0.1.2.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.3.0-1034-azure

File hashes

Hashes for sqldiffer-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d504bc9adbf5a3f35a1393f5eddadff1a660f83c4e4f7f5ba16ca10e1bcc0989
MD5 129ede9524bbc64012f1fff207a87356
BLAKE2b-256 e61d4555e7a09f119e8b2efd7ab35240fa4a36bd9886817c7ec5069aeff0e3fc

See more details on using hashes here.

File details

Details for the file sqldiffer-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: sqldiffer-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.3.0-1034-azure

File hashes

Hashes for sqldiffer-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 21d40be3ca93bb60ef69d53c6d856c0f8000ab044c61b0b09c84a1d1946404e2
MD5 450c1aa4fa2e2917558b1e5f4abf5a76
BLAKE2b-256 a56142176cedc6d739d31aecdfe0837ca58908010f857f7c436216bca942161c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page