colonelpanic8 / sqlalchemy-diff

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SQLAlchemy Diff

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.

About

License:Other


Languages

Language:Python 99.7%Language:Makefile 0.3%