Skip to main content

Database summary diff reporting tool

Project description

https://img.shields.io/travis/reichlab/diffport.svg?style=flat-square https://img.shields.io/pypi/v/diffport.svg?style=flat-square

Diffport is a database summary diff reporting tool. It helps in maintaining, diffing and reporting summaries from a database based on a set of watchers. It currently works (and is tested) under postgres.

Usage

Diffport works by using a set of watchers to take snapshots of database at different times and then producing a difference report when asked for it. It uses a config file specifying these watchers and their own specific configuration needs. An example follows:

# diffport.yaml
- name: number-of-rows
  config:
    groupby:
      - <groupby-column-one>
      - <groupby-column-two>
    table: <table-name>

- name: tables-in-schema
  config:
    - <schema-one>
    - <schema-two>

The first watcher (number-of-rows) keeps the count of rows in table <table-name, grouped by columns <groupby-column-one> and <groupby-column-two>. The second watcher tables-in-schema keeps the list of tables in each of the schema provided in its config.

For more details and usage instructions, head over to the project’s documentation here.

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

diffport-0.4.0.tar.gz (24.4 kB view details)

Uploaded Source

File details

Details for the file diffport-0.4.0.tar.gz.

File metadata

  • Download URL: diffport-0.4.0.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for diffport-0.4.0.tar.gz
Algorithm Hash digest
SHA256 54f8cdbbc73b915aaaed17277a351ec403ab9e24a7e6ac4726587586e302239d
MD5 80af99d4d16e96f3e6deb116a623a273
BLAKE2b-256 e58ee9dd111deb072b04afcbcb89187fbab60fdff87b681965a4c9bd3d50caba

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