dbkit

package
v0.0.0-...-1f13888 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PgConfig

type PgConfig struct {
	Host                    string
	Port                    int
	DbName                  string
	User                    string
	Password                string
	SslMode                 string
	FallbackApplicationName string
	ConnectTimeout          int
	SslCert                 string
	SslKey                  string
	SslRootCert             string
}

PgConfig is clean way to generate connection string for postgres

func (PgConfig) ConnectionString

func (c PgConfig) ConnectionString() string

ConnectionString return connection string based on https://godoc.org/github.com/lib/pq#hdr-Connection_String_Parameters

Jump to

Keyboard shortcuts

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