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.5.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

sqlalchemy_diff-0.1.5-py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 3

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