A QGIS plugin for managing PostgreSQL database templates and creating portable project archives.
- Create Templates: Generate database templates from existing PostgreSQL databases without data
- Deploy Templates: Create new databases from existing templates
- Schema Preservation: Maintain all database structure, constraints, and relationships
- PostgreSQL to Geopackage: Convert all PostgreSQL layers to a single portable geopackage
- Complete Project Export: Copy all project files including DCIM folders and media and updates source references
- Fix QGIS Project Layers: Search and update database connection configuration in layers.
- Clean QGS Files: Remove username and password in case they have been saved within the project file
- Truncate Tables: Truncate tables, to have a fresh start with duplicated databases
- Open QGIS
- Go to
Plugins
→Manage and Install Plugins
- Search for "KGR Toolbox"
- Click
Install Plugin
- Download the latest release from GitHub Releases
- Go to
Plugins
→Manage and Install Plugins
- Upload the zip
Most of the actions need a database connection. Use a highly priviliged user to work with templates and databases.
- Open the KGR Toolbox plugin
- Go to the Database Connection tab
- Enter your PostgreSQL connection details
- Click Test Connection
For all other actions click the help button in the upper right corner of each tab.
- QGIS 3.0 or higher
- PostgreSQL database with appropriate permissions
- Python 3.6+ (included with QGIS)
Connection Failed
- Verify PostgreSQL server is running
- Check host, port, and credentials
- Ensure user has appropriate permissions
Template Creation Failed
- Ensure user has CREATEDB privileges
- Check database name doesn't already exist
- Verify sufficient disk space
Archive Export Failed
- Check write permissions in output folder
- Ensure sufficient disk space
- Verify QGIS project is saved
- Check the Issues page
- Create a new issue with detailed description
- Include QGIS version, PostgreSQL version, and error messages
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.