postgres

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2020 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildConnectionURI

func BuildConnectionURI(cc ConnectionConfig) string

BuildConnectionURI builds a connection string for lib/pq from ConnectionConfig. If a missing or invalid field is provided, an error is returned.

Types

type ConnectionConfig

type ConnectionConfig struct {
	Host                  string
	Port                  uint16
	Username              string
	Password              string
	Database              string
	ApplicationName       string
	ConnectTimeoutSeconds int
	SSLMode               string
}

ConnectionConfig defines Postgres database_sql connection parameters

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL