postgresql

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connection

func Connection(conn string) (*gorm.DB, error)

Types

type Config

type Config struct {
	Host            string
	Port            uint
	Database        string
	Username        string
	Password        string
	SearchPath      string `mapstructure:"search_path"`
	SslMode         string `mapstructure:"sslmode"`
	SslCert         string `mapstructure:"sslcert"`
	SslKey          string `mapstructure:"sslkey"`
	SslRootCert     string `mapstructure:"sslrootcert"`
	ConnectTimeout  uint   `mapstructure:"connect_timeout"`
	ConnMaxLifetime int    `mapstructure:"conn_max_lifetime"`
	MaxIdleConns    int    `mapstructure:"max_idle_conns"`
	MaxOpenConns    int    `mapstructure:"max_open_conns"`
}

Jump to

Keyboard shortcuts

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