Documentation ¶
Overview ¶
Support PGSERVICE and PGSERVICEFILE environment variables for PostgreSQL.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
Apply config options specified in `service` section of `file` (defaults to `~/.pg_service.conf`) to environment variables. This make them available to [`pq`](https://github.com/lib/pq). It also removes `PGSERVICE` and `PGSERVICEFILE` from environment variables to prevent `pq` panic. Read more about [The Connection Service File](https://www.postgresql.org/docs/current/static/libpq-pgservice.html).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.