Discover Packages
github.com/pace/bricks
backend
postgres
package
Version:
v0.1.11
Opens a new window with list of versions in this module.
Published: Jun 6, 2019
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
PostgreSQL
Environment based configuration
Configuration for the PostgreSQL connection pool of the microservice.
POSTGRES_PORT
default: 5432
Port to be used for listening used if address is not specified
POSTGRES_HOST
default: localhost
Host where the PostgreSQL can be found (dns or IP)
POSTGRES_PASSWORD
default: pace1234!
password to access the database
POSTGRES_USER
default: postgres
postgres user to access the database
POSTGRES_DB
default: postgres
Expand ▾
Collapse ▴
Documentation
¶
Package postgres helps creating PostgreSQL connection pools
func ConnectionPool() *pg .DB
ConnectionPool returns a new database connection pool
that is already configured with the correct credentials and
instrumented with tracing and logging
CustomConnectionPool returns a new database connection pool
that is already configured with the correct credentials and
instrumented with tracing and logging using the passed options
Source Files
¶
Click to show internal directories.
Click to hide internal directories.