Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFromConfig ¶
Types ¶
type Config ¶
type Config struct { Host string Port string User string Password string DBName string SearchPath string }
Config holds the state for a PostgreSQL DB config.
func NewConfigFromEnvironment ¶
NewConfigFromEnvironment loads a Postgres config from environment variables.
func (Config) DataSourceName ¶
DataSourceName returns the DSN for a PostgreSQL DB.
Click to show internal directories.
Click to hide internal directories.