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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sqlalchemy-diff-0.1.5.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for sqlalchemy_diff-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b618238de87e0062b025b0ff2cb4f9928ddddb64a5bb50bd407cd06b9543314 |
|
MD5 | 9448ce9e9963c8f8fe834677de7662ad |
|
BLAKE2b-256 | 1ba5e4eb12cc41829a1b8bae7e64b073fa9b3da62cb1b3e6aa90927c8434588f |