Utility to run data consistency checks against a SQL database.
Project uses Python 3.6
- Install
pip
andvirtualenv
(how to?) - Create virtualenv
virtualenv .venv
- Enter to virtualenv
source .venv/bin/activate
- Install required python libraries by run
pip install -r requirements.txt
- Configure DB connection on
config.py
file. - Run example consistency checks:
python example_consistency_checks.py
This utility provides a way of programmatically run consistency checks on a MySQL or PostgreSQL database and get notified.
A given consistency check accepts two input SQL queries that must return a numeric value (e.g. count, sum), and then the two resulting values are evaluated with the provided comparison operator (equal, not equal, smaller than or equal).
It also incorporates a module to notify of failing checks via Slack web hook.