A dependency resolution library that performs conflict resolution to create a topological ordering for creating and destroying SQL objects such as views, functions and indexes.
Project description
sql-dependency-resolution
A dependency resolution library that performs conflict resolution to create a topological ordering for creating and destroying SQL objects such as views, functions and indexes.
Installation
Install using pip install sql-dependency-resolver
Usage
- import using
from resolver import ViewDependencyResolver - use
create_orderanddrop_orderto retrieve dependency ordering.(currently only views are supported).
Caveats
- assumes name of file is the name of view.
- views must be pre-fixed with
vw_ormvw_. - dependecies are collected from join conditions.
Tests
Run tests with pytest
TODO
- implement functions, procedures and indexes.
- auto detect name from header using regex.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sql-dependency-resolver-1.1.0.tar.gz.
File metadata
- Download URL: sql-dependency-resolver-1.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e23fc74d34978d27fcf71776b5eaff955031618695524407ee6df08bb45b9c54
|
|
| MD5 |
8aba7b91757031d6b6f39d87ce6b7cae
|
|
| BLAKE2b-256 |
547500364771b1088090114e0d432ea33671a48e3977d90f27e465517fa41bc5
|
File details
Details for the file sql_dependency_resolver-1.1.0-py3-none-any.whl.
File metadata
- Download URL: sql_dependency_resolver-1.1.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d44c09d1fc09d15bb74a53b742eee79c75ff9401e95ae38315d8f301b3e21754
|
|
| MD5 |
2b3a6d71bc4aba8922825606f000b7a7
|
|
| BLAKE2b-256 |
329e5b9451def36e6748284e51ac2d4f85c42319fb2a019ef70b075cab5d2bf2
|