Skip to main content

Compare two database schemas using sqlalchemy.

Project description

Compare and generate a diff between two databases using SQLAlchemy’s inspection API.

Documentation

See http://sqlalchemy-diff.readthedocs.org.

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

sqlalchemy-diff-0.1.3.tar.gz (6.5 kB view details)

Uploaded Source

File details

Details for the file sqlalchemy-diff-0.1.3.tar.gz.

File metadata

File hashes

Hashes for sqlalchemy-diff-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0d83243eadc01e116d8d818b2f20a021b7931f783615f3f62ace3cd1c1f64663
MD5 89af8f20782743c3d74c2fe41811bc38
BLAKE2b-256 74f075127f3b828544f68a41137ee9b8c9cd5f92db35595772727d26340fcd92

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page