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.6.0.tar.gz
(14.5 kB
view hashes)
Built Distribution
Close
Hashes for pg_metadata-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51b8536aaefef32350bf194120a6f5f968a1b67a23eff589b72a9626fa6016a1 |
|
MD5 | 3d72c835c2698a81a6e582a94ad610f4 |
|
BLAKE2b-256 | acccee2486aaac9c648bf38f82a3a78ac588dbf5fbdaab780da5f9d4c436d934 |