PostgreSQL metadata grabber and comparer
Project description
PostgreSQL metadata (DDL) grabber and comparer
Dependencies
Installation
pip install psycopg2 pg-metadata
Usage
1 ) Create file _Connect.py
with connection params:
# Source database for comparing
# Database for grabbing
PG_SOURCE = {
"host" : "",
"port" : 5432,
"database" : "",
"username" : "",
"password" : "",
}
# Target database for comparing
PG_TARGET = {
"host" : "",
"port" : 5432,
"database" : "",
"username" : "",
"password" : "",
}
# Excluded namespaces
EXCLUDE_SCHEMAS = [
"information_schema",
"pg_catalog",
"pg_temp",
"pg_temp_1",
"pg_toast",
"pg_toast_temp_1"
]
# Path with compare folder
PATH_COMPARE = "./compare"
2 ) To grab database metadata run zzz_Grabber.py
.
3 ) To compare databases run zzz_Compare.py
.
Links
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
pg_metadata-0.5.3.tar.gz
(14.1 kB
view hashes)
Built Distribution
Close
Hashes for pg_metadata-0.5.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ce8fb3a1a8c20149b927ea9336f6eabe2682ac7466358d8335d689ffec80a1e |
|
MD5 | e6fcc336173d7fc4714b31aa10ad8397 |
|
BLAKE2b-256 | 145b37e76966f472590d05f6773305360670b172de3e2a4d4ee8d1dfe606cd85 |