Skip to main content

DB Drift

PyPI version Python License Downloads CI Code style: ruff

A command-line tool to visualize the differences between two DB states.

Table of Contents

Installation

Install the package from PyPI:

# Using pip
pip install db-drift

# Using pipx
pipx install db-drift

# Using poetry
poetry add db-drift

# Using pipenv
pipenv install db-drift

# Using uv
uv add db-drift

Features

  • Compare two database states and visualize the differences.

How to Use

Basic usage:

db-drift --source "source.db" --target "target.db"

The tool will generate an HTML report showing the differences between the two database states.

Examples

# Compare two SQLite databases
db-drift --source "old_version.db" --target "new_version.db"

# Specify custom output file
db-drift --source "db1.db" --target "db2.db" --output "my_report.html"

# Show version information
db-drift --version

Options

Option Description Default Required
-v, --version Show version information and exit - No
--dbms Specify the type of DBMS sqlite No
-o, --output Output filename for the drift report drift_report.html No
--source Connection string for the source database - Yes
--target Connection string for the target database - Yes
--verbose Enable verbose logging output No No

Supported DBMS Types

Currently supported database management systems:

  • sqlite - SQLite databases
  • oracle - Oracle databases (in active development)

Note: Support for PostgreSQL and MySQL is planned for future releases.

Oracle Support Status

Oracle support is available and actively evolving. The project can compare many Oracle object types today, but support is not yet considered end-to-end across all Oracle features and environments.

For the current scope, caveats, and examples, see docs/oracle-support.md and docs/supported-db-objects.md.

Troubleshooting

Common Issues

Getting Help

  • Check the examples directory for working samples
  • Review the issues page for known problems
  • Create a new issue if you encounter a bug or have a feature request

Contributing

Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.

Please read our CONTRIBUTING.md file for more details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for db-drift 1.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for db-drift 1.5.1
File Size Uploaded
db_drift-1.5.1.tar.gz 20.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for db-drift 1.5.1
File Interpreter ABI Platform
db_drift-1.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 56.1 kB

Release files / db_drift-1.5.1.tar.gz

Download URL db_drift-1.5.1.tar.gz
Size 20.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5d3e3ee0bf954fc5a8f84bcbb71c9203bce99cd4c6f77a608c654cd6b03fbf37
BLAKE2b-256 checksum
How to use checksums
f0ee12ea0617b9b54373e6eeea91655cb2c507f93242d08123bc545fb8c73808
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / db_drift-1.5.1-py3-none-any.whl

Download URL db_drift-1.5.1-py3-none-any.whl
Size 35.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d5ddfd8325e53f4f54c9bfd7e0e3b10bb82b3a50d4e45cc8cd12acf794c02a2
BLAKE2b-256 checksum
How to use checksums
a0533355f783e04e0bf159cc0925fee4f36ee41cbf357fbfced9ea2920a703fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release history Release notifications | RSS feed

This release

1.5.1 This release

2 release files

1.5.0

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.8

2 release files

1.3.7

2 release files

1.3.6

2 release files

1.3.5

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page