Skip to content

Latest commit

 

History

History
executable file
·
49 lines (22 loc) · 1.98 KB

README.md

File metadata and controls

executable file
·
49 lines (22 loc) · 1.98 KB

Release

PG service parser plugin

Logo

QGIS v3 plugin to view, edit or copy PG service (i.e., pg_service.conf) entries for PostgreSQL connections.

This plugin is distributed under the GNU GPL v3 license.

pg_service.conf location

If your pg_service.conf file is located at /home/YOUR_USER/.pg_service.conf (on Linux) or at %APPDATA%\postgresql\.pg_service.conf (on Windows), then you are done! The plugin will read your file directly.

If that's not the case, i.e., if your pg_service.conf file is not in the aforementioned locations, you can still set the PGSERVICEFILE environment variable pointing to your pg_service.conf file path before using the plugin.

Clients like QGIS will directly read your pg_service.conf file from any of these locations and you'll be able to use any service from this file in the New Connection dialog (see QGIS docs).

Edit PG service entries

Edit service

Copy PG service entries

Copy service

For devs

pgserviceparser library

This plugin uses the pgserviceparser library. It's also available as a PYPI package.

Code style

Use pre-commit:

pip install pre-commit
pre-commit install