Skip to content

gianchub/sqlalchemy-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.