pg to git converter
Project description
pg-export - pg to git converter
Export structure of database to object files for control version system
structure of result directories
casts:
...
data:
schema1:
table1.sql
schema2:
...
extensions:
...
publications:
...
schemas:
schema1:
aggregate:
...
domains:
...
functions:
...
operators:
...
sequences:
...
tables:
...
triggers:
...
types:
...
views:
...
schema2
...
installation
pip install pg-export
usage
usage: pg_export [--help] [--version] [--clean] [--echo-queries] [-h HOST] [-p PORT] [-U USER] [-W PASSWORD] [-j JOBS] [-z TIMEZONE] database out_dir
positional arguments:
database source database name
out_dir directory for object files
options:
--help show this help message and exit
--version show program's version number and exit
--clean clean out_dir if not empty (env variable PG_EXPORT_AUTOCLEAN=true)
--echo-queries echo commands sent to server
-h HOST, --host HOST host for connect db (env variable PG_HOST=<host>)
-p PORT, --port PORT port for connect db (env variable PG_PORT=<port>)
-U USER, --user USER user for connect db (env variable PG_USER=<user>)
-W PASSWORD, --password PASSWORD
password for connect db (env variable PG_PASSWORD=<password>)
-j JOBS, --jobs JOBS number of connections
-z TIMEZONE, --timezone TIMEZONE
timezone for constraints, partitions etc.
examples
pg_export -h 127.0.0.1 -p 5432 -U postgres -j 4 my_database /tmp/my_database_structure/
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_export-3.7.3.tar.gz
(51.8 kB
view details)
Built Distribution
pg_export-3.7.3-py3-none-any.whl
(87.9 kB
view details)
File details
Details for the file pg_export-3.7.3.tar.gz
.
File metadata
- Download URL: pg_export-3.7.3.tar.gz
- Upload date:
- Size: 51.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e7d99a3973b00870b5c824cd44c1c24ebd09bf0ef12d17cbd2553e429021c0e |
|
MD5 | e19b76bd4128a8f8e9df936d5fae8f8e |
|
BLAKE2b-256 | f38b5869578ee6db9adc68c56bd89b921ccfabbdfc7efaf7f6df9adbf29369b0 |
File details
Details for the file pg_export-3.7.3-py3-none-any.whl
.
File metadata
- Download URL: pg_export-3.7.3-py3-none-any.whl
- Upload date:
- Size: 87.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92a6474472ae1ff49ec95b47eb33fc8be1796ea872ceb5213f98b39de4f68968 |
|
MD5 | 0dff8d92661bf029187762c714529687 |
|
BLAKE2b-256 | 4c93b6e21de7fff4e6fb569289090e12441f9b013e545f89219e06232edd8402 |