Tool for comparing and inspecting data in SQL databases.
Project description
SQLCompyre
SQLCompyre is a simple Python package that allows you to find and explore the differences between SQL tables, schemas, and entire databases.
Installation
SQLCompyre can be installed via pip
or conda
:
pip install sqlcompyre
# or
micromamba install sqlcompyre
# or
conda install sqlcompyre
Details on its usage can be found in the documentation.
Development
This project is managed by pixi. You can install the package in development mode using:
git clone https://github.com/quantco/sqlcompyre
cd sqlcompyre
pixi run pre-commit-install
pixi run postinstall
Running Tests Locally
-
Make sure you have
msodbcsql18
installed, or install it here -
Make sure you have
Docker
installed, or install it here -
Create a local test database with the following command:
docker compose up
- Set environment variable
export DB_CONNECTION_STRING="mssql+pyodbc://sa:Passw0rd@localhost:1435/master?driver=ODBC+Driver+18+for+SQL+Server&Encrypt=no"
- Navigate to the main directory of this repository and run pytest.
pixi run test
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sqlcompyre-1.0.0.tar.gz
(113.3 kB
view hashes)
Built Distribution
sqlcompyre-1.0.0-py3-none-any.whl
(39.0 kB
view hashes)
Close
Hashes for sqlcompyre-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fce6af20741a589b7dd711020cc53de83f40fbaf79284f314ce0ff94fa227ca |
|
MD5 | a474b00cce9a618f544f25e5af14fcdd |
|
BLAKE2b-256 | 62e8d12c6fe3917a90db6fe096a56867b14707e4581a7a36a4c9eeed656ecf5d |