DB Drift
A command-line tool to visualize the differences between two DB states.
Table of Contents
- Installation
- Features
- How to Use
- Examples
- Options
- Oracle Support Status
- Troubleshooting
- Contributing
- License
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 databasesoracle- 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)
| File | Size | Uploaded | |
|---|---|---|---|
| db_drift-1.5.1.tar.gz | 20.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|