The pgdump-mapper is designed to read PostgreSQL dump files and export the data in various formats. It provides a command-line interface for easy configuration and usage.
- Read PostgreSQL Dump Files: Efficiently parses PostgreSQL dump files, handling table definitions, primary keys, and foreign keys.
- Export Options: Supports exporting data in multiple formats:
- JSON
- JSON Pretty
- YAML
- HTML
- SQLite
- Filter Options: Supports filtering data based on:
- Schema
- Table
- Columns
pgdump-mapper
├── internal
│ ├── cli/ # Command-line interface handles
│ │ └── errors/ # Error declarations
│ │ └── messages/ # Message declarations
│ └── data/ # Main logic for reading and exporting data
│ └── exporters/ # Logic for data export
│ └── parsers/ # Logic for data processing
│ └── templates/ # Template declarations
├── models/ # Data models
├── README.md # Documentation
└── main.go # Entry point
-
Clone the Repository:
git clone https://github.com/hedibertosilva/pgdump-mapper.git cd pgdump-mapper -
Build the Application:
go build -o pgdump-mapper main.go -
Install it:
cp pgdump-mapper /home/$USER/.local/bin -
Usage:
pgdump-mapper --help
Feel free to contribute. Contact me via hed.cavalcante@gmail.com