Compare two database schemas using sqlalchemy.
Project description
Compare and generate a diff between two databases using SQLAlchemy’s inspection API.
Documentation
Running tests
Tests are written with pytest. Makefile targets to invoke tests are also provided for convenience.
Test databases will be created, used during the tests and destroyed afterwards.
Example:
$ # using default settings
$ make test
# or
$ py.test test
$ # overridding the database URI
$ py.test test --test-db-url=mysql+mysqlconnector://root:password@localhost:3306/sqlalchemydiff
# or
$ make test ARGS="--test-db-url=mysql+mysqlconnector://root:password@localhost:3306/sqlalchemydiff"
# providing other pytest args via Make
$ make test ARGS="--lf -x -vv"
License
Apache 2.0. See LICENSE for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sqlalchemy-diff-0.1.5.tar.gz.
File metadata
- Download URL: sqlalchemy-diff-0.1.5.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a3d4de3cb7580876789a7da25040ae5b827c7a70ee4e733daef1ab68aad0e72
|
|
| MD5 |
1000069228f50978e82f10dfb310f57f
|
|
| BLAKE2b-256 |
e393f58c440faf8ea35a75661e0cb188c304d004242d0c0287e5f5017f801517
|
File details
Details for the file sqlalchemy_diff-0.1.5-py3-none-any.whl.
File metadata
- Download URL: sqlalchemy_diff-0.1.5-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b618238de87e0062b025b0ff2cb4f9928ddddb64a5bb50bd407cd06b9543314
|
|
| MD5 |
9448ce9e9963c8f8fe834677de7662ad
|
|
| BLAKE2b-256 |
1ba5e4eb12cc41829a1b8bae7e64b073fa9b3da62cb1b3e6aa90927c8434588f
|